Struct tokio_watchdog::Pet [] [src]

pub struct Pet(_);

Reset/restart the watchdog, so it don't activate

Methods

impl Pet
[src]

[src]

Reset/restart the watchdog, so it don't activate

Call it periodically from various places

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> From<&'a Watchdog> for Pet
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Pet

impl Sync for Pet