[][src]Struct songbird::events::EventStore

pub struct EventStore { /* fields omitted */ }

Storage for EventData, designed to be used for both local and global contexts.

Timed events are stored in a binary heap for fast selection, and have custom Eq, Ord, etc. implementations to support (only) this.

Implementations

impl EventStore[src]

pub fn new() -> Self[src]

Creates a new event store to be used globally.

pub fn new_local() -> Self[src]

Creates a new event store to be used within a Track.

This is usually automatically installed by the driver once a track has been registered.

pub fn add_event(&mut self, evt: EventData, now: Duration)[src]

Add an event to this store.

Updates evt according to EventData::compute_activation.

Trait Implementations

impl Debug for EventStore[src]

impl Default for EventStore[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<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]