Struct s2n_quic_core::recovery::Pto
source · pub struct Pto { /* private fields */ }Implementations§
source§impl Pto
impl Pto
sourcepub fn on_timeout(
&mut self,
packets_in_flight: bool,
timestamp: Timestamp
) -> Poll<()>
pub fn on_timeout( &mut self, packets_in_flight: bool, timestamp: Timestamp ) -> Poll<()>
Called when a timeout has occurred. Returns Ready if the PTO timer had expired.
pub fn update(&mut self, base_timestamp: Timestamp, pto_period: Duration)
sourcepub fn transmissions(&self) -> u8
pub fn transmissions(&self) -> u8
Returns the number of pending transmissions
Trait Implementations§
source§impl Provider for Pto
impl Provider for Pto
source§fn timers<Q: Query>(&self, query: &mut Q) -> Result
fn timers<Q: Query>(&self, query: &mut Q) -> Result
Notifies the query of any timers owned by the provider Read more
source§fn next_expiration(&self) -> Option<Timestamp>
fn next_expiration(&self) -> Option<Timestamp>
Returns the next
Timestamp at which the earliest timer is armed in the providersource§fn armed_timer_count(&self) -> usize
fn armed_timer_count(&self) -> usize
Counts the number of armed timers in the provider
source§impl Provider for Pto
impl Provider for Pto
fn transmission_interest<Q: Query>(&self, query: &mut Q) -> Result
fn get_transmission_interest(&self) -> Interest
fn has_transmission_interest(&self) -> bool
fn can_transmit(&self, constraint: Constraint) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for Pto
impl Send for Pto
impl Sync for Pto
impl Unpin for Pto
impl UnwindSafe for Pto
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