pub enum Timeout {
    Infinite,
    Sec(usize),
    Milli(usize),
    Micro(usize),
    Nano(usize),
}
Expand description

Defines different variants to specify timeouts

Variants§

§

Infinite

Wait forever for an event to be signaled

§

Sec(usize)

Duration in seconds for a timeout

§

Milli(usize)

Duration in milliseconds for a timeout

§

Micro(usize)

Duration in microseconds for a timeout

§

Nano(usize)

Duration in nanoseconds for a timeout

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.