pub struct SecurityContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> SecurityContext<'a>
impl<'a> SecurityContext<'a>
pub fn new(nib: &'a Nib, aib: &'a Aib) -> Self
pub fn encrypt_nwk_frame_in_place( &self, nwk_frame: NwkFrame<'_>, frame_buffer: &mut [u8], ) -> Result<usize, SecurityError>
pub fn decrypt_nwk_frame_in_place<'b>( &self, frame_buffer: &'b mut [u8], ) -> Result<NwkFrame<'b>, SecurityError>
pub fn encrypt_aps_frame_in_place( &self, aps_frame: ApsFrame<'_>, frame_buffer: &mut [u8], dest: IeeeAddress, tx_options: TxOptions, ) -> Result<usize, SecurityError>
pub fn decrypt_aps_frame_in_place<'b>( &self, frame_buffer: &'b mut [u8], ) -> Result<ApsFrame<'b>, SecurityError>
Trait Implementations§
Source§impl<'a> TryRead<'a, SecurityContext<'a>> for Frame<'a>
impl<'a> TryRead<'a, SecurityContext<'a>> for Frame<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SecurityContext<'a>
impl<'a> !UnwindSafe for SecurityContext<'a>
impl<'a> Freeze for SecurityContext<'a>
impl<'a> Send for SecurityContext<'a>
impl<'a> Sync for SecurityContext<'a>
impl<'a> Unpin for SecurityContext<'a>
impl<'a> UnsafeUnpin for SecurityContext<'a>
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> 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