Struct pipewire::EventSource[][src]

pub struct EventSource<'l> { /* fields omitted */ }
Expand description

A source that can be used to signal to a loop that an event has occurred.

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

By calling signal on the EventSource, the loop is signaled that the event has occurred. It will then call the callback at the next possible occasion.

Implementations

Signal the loop associated with this source that the event has occurred, to make the loop call the callback at the next possible occasion.

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

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.