pub struct SNwkSIntKey(/* private fields */);Expand description
Serving network session integrity key (LoRaWAN 1.1).
Computes the upper 2 bytes of the uplink dual-MIC and the full downlink MIC; also used for Rejoin types 0 and 2.
Implementations§
Source§impl SNwkSIntKey
impl SNwkSIntKey
Sourcepub const fn from_slice(s: &[u8]) -> Result<Self>
pub const fn from_slice(s: &[u8]) -> Result<Self>
Construct from a slice, validating the length.
§Errors
Returns Error::InvalidKeyLength when the slice is not 16 bytes.
Source§impl SNwkSIntKey
impl SNwkSIntKey
Sourcepub fn from_hex(s: &str) -> Result<Self>
pub fn from_hex(s: &str) -> Result<Self>
Construct from a hex string (32 hex chars for 16 bytes).
§Errors
Error::Hex if the input is not valid hex.
Error::InvalidKeyLength if the decoded byte length is not 16.
Sourcepub fn from_base64(s: &str) -> Result<Self>
pub fn from_base64(s: &str) -> Result<Self>
Construct from a standard base64 string.
§Errors
Error::Base64 if the input is not valid base64.
Error::InvalidKeyLength if the decoded byte length is not 16.
Trait Implementations§
Source§impl Clone for SNwkSIntKey
impl Clone for SNwkSIntKey
Source§fn clone(&self) -> SNwkSIntKey
fn clone(&self) -> SNwkSIntKey
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 moreSource§impl Debug for SNwkSIntKey
impl Debug for SNwkSIntKey
Source§impl<'de> Deserialize<'de> for SNwkSIntKey
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SNwkSIntKey
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for SNwkSIntKey
impl Drop for SNwkSIntKey
Source§impl Hash for SNwkSIntKey
impl Hash for SNwkSIntKey
Source§impl PartialEq for SNwkSIntKey
impl PartialEq for SNwkSIntKey
Source§fn eq(&self, other: &SNwkSIntKey) -> bool
fn eq(&self, other: &SNwkSIntKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SNwkSIntKey
Available on crate feature serde only.
impl Serialize for SNwkSIntKey
Available on crate feature
serde only.Source§impl Zeroize for SNwkSIntKey
impl Zeroize for SNwkSIntKey
impl Eq for SNwkSIntKey
impl StructuralPartialEq for SNwkSIntKey
Auto Trait Implementations§
impl Freeze for SNwkSIntKey
impl RefUnwindSafe for SNwkSIntKey
impl Send for SNwkSIntKey
impl Sync for SNwkSIntKey
impl Unpin for SNwkSIntKey
impl UnsafeUnpin for SNwkSIntKey
impl UnwindSafe for SNwkSIntKey
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