Struct calloop::Source

source ·
pub struct Source<E: EventSource> { /* private fields */ }
Expand description

An event source that has been inserted into the event loop

This handle allows you to remove it, and possibly more interactions depending on the source kind that will be provided by the Deref implementation of this struct to the evented object.

Dropping this handle does not deregister this source from the event loop, but will drop the wrapped EventSource, maybe rendering it inert depending on its implementation.

Implementations

Refresh the registration of this event source to the loop

This can be necessary if the evented object provides methods to change its behavior. Its documentation should inform you of the need for re-registration.

Remove this source from the event loop

You are given the evented object back.

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

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.