pub struct IdleSource<'l> { /* private fields */ }
Expand description

A source that can be used to have a callback called when the loop is idle.

This source can be obtained by calling add_idle on a loop, registering a callback to it.

Implementations

Set the source as enabled or disabled, allowing or preventing the callback from being called.

Trait Implementations

Executes the destructor for this type. Read more
Return a valid pointer to a raw spa_source.

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.