pub struct EventWatch<'a, CB: EventWatchCallback + 'a> { /* private fields */ }
Expand description

An handler for the event watch callback. One must bind this struct in a variable as long as you want to keep the callback active. For further information, see [EventSubsystem::add_event_watch].

Implementations

Activates the event watch. Does nothing if it is already activated.

Deactivates the event watch. Does nothing if it is already activated.

Returns if the event watch is activated.

Set the activation state of the event watch.

Trait Implementations

Executes the destructor for this type. Read more

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.