pub struct SecurityToken { /* private fields */ }Expand description
Public API for ZLL stack security token.
Implementations§
Source§impl SecurityToken
impl SecurityToken
Sourcepub const fn new(
bitmask: u32,
key_index: u8,
encryption_key: [u8; 16],
preconfigured_key: [u8; 16],
) -> Self
pub const fn new( bitmask: u32, key_index: u8, encryption_key: [u8; 16], preconfigured_key: [u8; 16], ) -> Self
Create a new ZLL stack security token.
Sourcepub const fn encryption_key(&self) -> &[u8; 16]
pub const fn encryption_key(&self) -> &[u8; 16]
Return the encryption key.
Sourcepub const fn preconfigured_key(&self) -> &[u8; 16]
pub const fn preconfigured_key(&self) -> &[u8; 16]
Return the preconfigured key.
Trait Implementations§
Source§impl Clone for SecurityToken
impl Clone for SecurityToken
Source§fn clone(&self) -> SecurityToken
fn clone(&self) -> SecurityToken
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 SecurityToken
impl Debug for SecurityToken
impl Eq for SecurityToken
Source§impl FromLeStream for SecurityToken
impl FromLeStream for SecurityToken
Source§fn from_le_stream<__LeStreamBytesIterator>(
bytes: __LeStreamBytesIterator,
) -> Option<Self>
fn from_le_stream<__LeStreamBytesIterator>( bytes: __LeStreamBytesIterator, ) -> Option<Self>
Parses a value from the front of a little-endian byte stream. Read more
Source§impl PartialEq for SecurityToken
impl PartialEq for SecurityToken
Source§fn eq(&self, other: &SecurityToken) -> bool
fn eq(&self, other: &SecurityToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityToken
Source§impl ToLeStream for SecurityToken
impl ToLeStream for SecurityToken
Source§type Iter = Chain<Chain<Chain<<u32 as ToLeStream>::Iter, <u8 as ToLeStream>::Iter>, <[u8; 16] as ToLeStream>::Iter>, <[u8; 16] as ToLeStream>::Iter>
type Iter = Chain<Chain<Chain<<u32 as ToLeStream>::Iter, <u8 as ToLeStream>::Iter>, <[u8; 16] as ToLeStream>::Iter>, <[u8; 16] as ToLeStream>::Iter>
Iterator returned by
to_le_stream.Source§fn to_le_stream(self) -> <Self as ToLeStream>::Iter
fn to_le_stream(self) -> <Self as ToLeStream>::Iter
Returns an iterator over the little-endian byte representation. Read more
Auto Trait Implementations§
impl Freeze for SecurityToken
impl RefUnwindSafe for SecurityToken
impl Send for SecurityToken
impl Sync for SecurityToken
impl Unpin for SecurityToken
impl UnsafeUnpin for SecurityToken
impl UnwindSafe for SecurityToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more