pub struct Live96 { /* private fields */ }Expand description
One key/base/generation owner. No Clone, reset or implicit rekey is provided.
The 64-sequence RX window is a local policy; rollover requires a verified new
generation. Socket-source validation must happen before open.
Implementations§
Source§impl Live96
impl Live96
pub fn new( key: [u8; 32], nonce_base: u64, context: MediaContext, epoch: MediaEpoch, ) -> Result<Self>
pub fn known_audio_overlaps(&self) -> u64
pub fn seal_audio( &mut self, current: MediaEpoch, now_ms: u64, conf_payload: &[u8], ) -> Result<Vec<u8>>
pub fn open( &mut self, current: MediaEpoch, packet: &[u8], ) -> Result<Option<OpenedPayload>>
Sourcepub fn reply_to_probe(
&mut self,
current: MediaEpoch,
now_ms: u64,
opened: &OpenedPayload,
) -> Result<Option<Vec<u8>>>
pub fn reply_to_probe( &mut self, current: MediaEpoch, now_ms: u64, opened: &OpenedPayload, ) -> Result<Option<Vec<u8>>>
Reply only to the exact selected authenticated faking_type1 probe. A periodic/control response receives no echo. No general control sender is inferred, and retries would consume another semantic operation.
pub fn close(&mut self)
Auto Trait Implementations§
impl Freeze for Live96
impl RefUnwindSafe for Live96
impl Send for Live96
impl Sync for Live96
impl Unpin for Live96
impl UnsafeUnpin for Live96
impl UnwindSafe for Live96
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