pub struct Registration { /* private fields */ }Expand description
A device the network admits, the key it was provisioned with, and the revision of the link layer it follows.
Implementations§
Source§impl Registration
impl Registration
Sourcepub const fn with_version(self, version: Version) -> Registration
pub const fn with_version(self, version: Version) -> Registration
Sets the revision of the link layer the device follows.
The network holds a device to its own revision’s rules. The one that differs here is
the uplink counter: LoRaWAN 1.0.3 section 4.3.1.5 refuses a frame MAX_FCNT_GAP or
more ahead of the last one accepted, and TS001-1.0.4 asks only that the counter go
up.
§Arguments
version- the revision the device was built to.
§Returns
The updated registration, for chaining.
Trait Implementations§
Source§impl Clone for Registration
impl Clone for Registration
Source§fn clone(&self) -> Registration
fn clone(&self) -> Registration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Registration
Auto Trait Implementations§
impl Freeze for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
impl UnwindSafe for Registration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more