Struct glib::source::Continue

source ·
pub struct Continue(pub bool);
Expand description

Continue calling the closure in the future iterations or drop it.

This is the return type of idle_add and timeout_add closures.

Continue(true) keeps the closure assigned, to be rerun when appropriate.

Continue(false) disconnects and drops it.

Tuple Fields

0: bool

Trait Implementations

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.