Struct songbird::events::EventData[][src]

pub struct EventData { /* fields omitted */ }

Internal representation of an event, as handled by the audio context.

Implementations

impl EventData[src]

pub fn new<F: EventHandler + 'static>(event: Event, action: F) -> Self[src]

Create a representation of an event and its associated handler.

An event handler, action, receives an EventContext and optionally produces a new Event type for itself. Returning None will maintain the same event type, while removing any Delayed entries. Event handlers will be re-added with their new trigger condition, or removed if Cancelled

pub fn compute_activation(&mut self, now: Duration)[src]

Computes the next firing time for a timer event.

Trait Implementations

impl Debug for EventData[src]

impl Eq for EventData[src]

impl Ord for EventData[src]

Events are ordered/compared based on their firing time.

impl PartialEq<EventData> for EventData[src]

impl PartialOrd<EventData> for EventData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]