pub struct EventStore { /* private fields */ }Expand description
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§
Source§impl EventStore
impl EventStore
Sourcepub fn new_local() -> Self
pub fn new_local() -> Self
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.
Sourcepub fn add_event(&mut self, evt: EventData, now: Duration)
pub fn add_event(&mut self, evt: EventData, now: Duration)
Add an event to this store.
Updates evt according to EventData::compute_activation.
Trait Implementations§
Source§impl Debug for EventStore
impl Debug for EventStore
Source§impl Default for EventStore
impl Default for EventStore
Source§fn default() -> EventStore
fn default() -> EventStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventStore
impl !RefUnwindSafe for EventStore
impl Send for EventStore
impl Sync for EventStore
impl Unpin for EventStore
impl UnsafeUnpin for EventStore
impl !UnwindSafe for EventStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more