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
pub fn on_transmit_once(&mut self)
pub fn force_transmit(&mut self)
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 Freeze for Pto
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