Struct srt_protocol::protocol::time::Timers
source · pub struct Timers { /* private fields */ }Implementations§
source§impl Timers
impl Timers
pub const SYN: Duration = _
pub fn new( now: Instant, statistics_interval: Duration, peer_idle_timeout: Duration ) -> Self
pub fn next_timer( &self, now: Instant, has_packets_to_send: bool, next_message: Option<Instant>, unacked_packets: u32 ) -> Instant
pub fn check_snd(&mut self, now: Instant) -> Option<u32>
pub fn check_full_ack(&mut self, now: Instant) -> Option<u32>
pub fn check_nak(&mut self, now: Instant) -> Option<u32>
pub fn check_peer_idle_timeout(&mut self, now: Instant) -> Option<u32>
pub fn check_statistics(&mut self, now: Instant) -> Option<u32>
pub fn update_snd_period(&mut self, period: Duration)
pub fn update_rtt(&mut self, rtt: &Rtt)
pub fn reset_exp(&mut self, now: Instant)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Timers
impl Send for Timers
impl Sync for Timers
impl Unpin for Timers
impl UnwindSafe for Timers
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