Struct ieee802154::mac::frame::FrameSerDesContext
source · [−]pub struct FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO> where
AEADBLKCIPH: NewBlockCipher + BlockCipher<BlockSize = U16>,
KEYDESCLO: KeyDescriptorLookup<AEADBLKCIPH::KeySize>, { /* private fields */ }
Expand description
A context that is used for serializing and deserializing frames, which also stores the frame counter
Implementations
sourceimpl<'a, AEADBLKCIPH, KEYDESCLO> FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO> where
AEADBLKCIPH: NewBlockCipher + BlockCipher<BlockSize = U16>,
KEYDESCLO: KeyDescriptorLookup<AEADBLKCIPH::KeySize>,
impl<'a, AEADBLKCIPH, KEYDESCLO> FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO> where
AEADBLKCIPH: NewBlockCipher + BlockCipher<BlockSize = U16>,
KEYDESCLO: KeyDescriptorLookup<AEADBLKCIPH::KeySize>,
sourcepub fn new(
mode: FooterMode,
security_ctx: Option<&'a mut SecurityContext<AEADBLKCIPH, KEYDESCLO>>
) -> Self
pub fn new(
mode: FooterMode,
security_ctx: Option<&'a mut SecurityContext<AEADBLKCIPH, KEYDESCLO>>
) -> Self
Create a new frame serialization/deserialization context with the specified footer mode and security context
sourceimpl FrameSerDesContext<'_, Unimplemented, Unimplemented>
impl FrameSerDesContext<'_, Unimplemented, Unimplemented>
sourcepub fn no_security(mode: FooterMode) -> Self
pub fn no_security(mode: FooterMode) -> Self
Create a new frame serialization/deserialization context with the specified footer mode, that does not facilitate any security functionality
Trait Implementations
sourceimpl<AEADBLKCIPH, KEYDESCLO> TryWrite<&mut FrameSerDesContext<'_, AEADBLKCIPH, KEYDESCLO>> for Frame<'_> where
AEADBLKCIPH: NewBlockCipher + BlockCipher<BlockSize = U16> + BlockEncrypt,
KEYDESCLO: KeyDescriptorLookup<AEADBLKCIPH::KeySize>,
impl<AEADBLKCIPH, KEYDESCLO> TryWrite<&mut FrameSerDesContext<'_, AEADBLKCIPH, KEYDESCLO>> for Frame<'_> where
AEADBLKCIPH: NewBlockCipher + BlockCipher<BlockSize = U16> + BlockEncrypt,
KEYDESCLO: KeyDescriptorLookup<AEADBLKCIPH::KeySize>,
Auto Trait Implementations
impl<'a, AEADBLKCIPH, KEYDESCLO> RefUnwindSafe for FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO> where
AEADBLKCIPH: RefUnwindSafe,
KEYDESCLO: RefUnwindSafe,
impl<'a, AEADBLKCIPH, KEYDESCLO> Send for FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO> where
AEADBLKCIPH: Send,
KEYDESCLO: Send,
impl<'a, AEADBLKCIPH, KEYDESCLO> Sync for FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO> where
AEADBLKCIPH: Sync,
KEYDESCLO: Sync,
impl<'a, AEADBLKCIPH, KEYDESCLO> Unpin for FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO>
impl<'a, AEADBLKCIPH, KEYDESCLO> !UnwindSafe for FrameSerDesContext<'a, AEADBLKCIPH, KEYDESCLO>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more