Struct wookie::Stats[][src]

pub struct Stats {
    pub cloned: u16,
    pub dropped: u16,
    pub woken: u16,
}
Expand description

Statistics of waker activity for Wookie or Local.

Fields

cloned: u16

The number of times a Waker has been cloned. Usually equivalent to the number of times a waker has been set.

dropped: u16

The number of times a Waker has been dropped. Note that wake causes this count to be incremented as it takes ownership of the Waker.

woken: u16

The number of times a Waker has been woken. Includes calls to both wake and wake_by_ref.

Implementations

The number of live wakers, i.e. cloned - dropped.

Assert that cloned, dropped and woken are the provided values.

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

Performs the conversion.

Performs the conversion.

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.