MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get_device_session_mut

Method get_device_session_mut

chirpstack/src/storage/device.rs:159–163  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

157 }
158
159 pub fn get_device_session_mut(&mut self) -> Result<&mut internal::DeviceSession, Error> {
160 self.device_session
161 .as_deref_mut()
162 .ok_or_else(|| Error::NotFound(self.dev_eui.to_string()))
163 }
164
165 pub fn get_dev_addr(&self) -> Result<DevAddr> {
166 self.dev_addr.ok_or_else(|| anyhow!("DevAddr is not set"))

Calls 1

to_stringMethod · 0.80

Tested by 1

test_update_uplink_listFunction · 0.64