pub struct SenderContext<'a> { /* private fields */ }
Implementations§
Source§impl<'a> SenderContext<'a>
impl<'a> SenderContext<'a>
pub fn new( status: &'a mut ConnectionStatus, timers: &'a mut Timers, output: &'a mut Output, stats: &'a mut SocketStatistics, sender: &'a mut Sender, ) -> Self
pub fn handle_data(&mut self, now: Instant, item: (Instant, Bytes))
pub fn handle_ack_packet(&mut self, now: Instant, ack: Acknowledgement)
pub fn handle_nak_packet(&mut self, now: Instant, nak: CompressedLossList)
pub fn handle_key_refresh_response( &mut self, keying_material: KeyingMaterialMessage, )
pub fn on_snd_event(&mut self, now: Instant, elapsed_periods: u32)
Auto Trait Implementations§
impl<'a> Freeze for SenderContext<'a>
impl<'a> RefUnwindSafe for SenderContext<'a>
impl<'a> Send for SenderContext<'a>
impl<'a> Sync for SenderContext<'a>
impl<'a> Unpin for SenderContext<'a>
impl<'a> !UnwindSafe for SenderContext<'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