Struct tokio_watchdog::Pet
[−]
[src]
pub struct Pet(_);
Reset/restart the watchdog, so it don't activate
Methods
impl Pet
[src]
pub fn pet(&self)
[src]
Reset/restart the watchdog, so it don't activate
Call it periodically from various places
pub fn get_remaining_time(&self) -> Option<Duration>
[src]
Get how much time remains before the watchdog activates
None means it is already active
Some(0) is returned on internal error
Trait Implementations
impl Clone for Pet
[src]
fn clone(&self) -> Pet
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more