pub struct FNwkSIntKey(/* private fields */);Expand description
Forwarding network session integrity key (LoRaWAN 1.1).
Computes the lower 2 bytes of the dual-MIC for uplink Data frames.
See crate::V1_1MicKeys.
Implementations§
Source§impl FNwkSIntKey
impl FNwkSIntKey
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 FNwkSIntKey
impl FNwkSIntKey
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 FNwkSIntKey
impl Clone for FNwkSIntKey
Source§fn clone(&self) -> FNwkSIntKey
fn clone(&self) -> FNwkSIntKey
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 FNwkSIntKey
impl Debug for FNwkSIntKey
Source§impl<'de> Deserialize<'de> for FNwkSIntKey
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FNwkSIntKey
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 FNwkSIntKey
impl Drop for FNwkSIntKey
Source§impl Hash for FNwkSIntKey
impl Hash for FNwkSIntKey
Source§impl PartialEq for FNwkSIntKey
impl PartialEq for FNwkSIntKey
Source§fn eq(&self, other: &FNwkSIntKey) -> bool
fn eq(&self, other: &FNwkSIntKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FNwkSIntKey
Available on crate feature serde only.
impl Serialize for FNwkSIntKey
Available on crate feature
serde only.Source§impl Zeroize for FNwkSIntKey
impl Zeroize for FNwkSIntKey
impl Eq for FNwkSIntKey
impl StructuralPartialEq for FNwkSIntKey
Auto Trait Implementations§
impl Freeze for FNwkSIntKey
impl RefUnwindSafe for FNwkSIntKey
impl Send for FNwkSIntKey
impl Sync for FNwkSIntKey
impl Unpin for FNwkSIntKey
impl UnsafeUnpin for FNwkSIntKey
impl UnwindSafe for FNwkSIntKey
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