pub struct Timer {
pub inactivity: Counter,
pub nak: Counter,
pub eof: Counter,
pub progress_report: Counter,
}Fields§
§inactivity: Counter§nak: Counter§eof: Counter§progress_report: CounterImplementations§
Source§impl Timer
impl Timer
pub fn new( inactivity_timeout: i64, inactivity_max_count: u32, eof_timeout: i64, eof_max_count: u32, nak_timeout: i64, nak_max_count: u32, progress_report_interval_secs: i64, ) -> Self
pub fn restart_inactivity(&mut self)
pub fn reset_inactivity(&mut self)
pub fn restart_eof(&mut self)
pub fn reset_eof(&mut self)
pub fn restart_nak(&mut self)
pub fn reset_nak(&mut self)
pub fn reset_progress_report(&mut self)
Sourcepub fn until_timeout(&self) -> Duration
pub fn until_timeout(&self) -> Duration
returns the duration until one of the timers timeouts if all timers are paused, returns Duration::MAX
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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