pub struct KeyFrameTxFinalizer { /* private fields */ }
Expand description
KeyFrameTxFinalizer stores a key frame that has been serialized into a buffer, but which may still require the addition of a MIC before it can be transmitted.
Implementations§
Source§impl KeyFrameTxFinalizer
impl KeyFrameTxFinalizer
Sourcepub fn unfinalized_buf(&self) -> &[u8] ⓘ
pub fn unfinalized_buf(&self) -> &[u8] ⓘ
Access a key frame buffer that may still need to have its MIC field populated. This should generally only be used when calculating the MIC to pass to finalize_with_mic.
Sourcepub fn finalize_with_mic(self, mic: &[u8]) -> Result<KeyFrameBuf, Error>
pub fn finalize_with_mic(self, mic: &[u8]) -> Result<KeyFrameBuf, Error>
Generate a final key frame buffer. Fails if the given MIC is the wrong size, or if the key_mic bit is not set for this frame.
Sourcepub fn finalize_without_mic(self) -> Result<KeyFrameBuf, Error>
pub fn finalize_without_mic(self) -> Result<KeyFrameBuf, Error>
Generate a final key frame buffer. Fails if the key_mic bit is set for this frame.
Auto Trait Implementations§
impl Freeze for KeyFrameTxFinalizer
impl RefUnwindSafe for KeyFrameTxFinalizer
impl Send for KeyFrameTxFinalizer
impl Sync for KeyFrameTxFinalizer
impl Unpin for KeyFrameTxFinalizer
impl UnwindSafe for KeyFrameTxFinalizer
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