pub struct FrameOpener { /* private fields */ }Expand description
Opens one sender’s frames for one KID, rejecting replays.
Implementations§
Source§impl FrameOpener
impl FrameOpener
Sourcepub fn open(
&mut self,
metadata: &[u8],
frame: &[u8],
) -> Result<Vec<u8>, VoiceError>
pub fn open( &mut self, metadata: &[u8], frame: &[u8], ) -> Result<Vec<u8>, VoiceError>
Opens a sealed frame. The counter is recorded only once the frame authenticates.
§Errors
VoiceError::Header, VoiceError::UnknownKid for another KID,
VoiceError::Replay or VoiceError::Open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameOpener
impl RefUnwindSafe for FrameOpener
impl Send for FrameOpener
impl Sync for FrameOpener
impl Unpin for FrameOpener
impl UnsafeUnpin for FrameOpener
impl UnwindSafe for FrameOpener
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