pub enum SystemEvent {
EngineStarted {
timestamp: Instant,
},
EngineShutdown,
ListenerAdded {
id: ListenerId,
},
ListenerRemoved {
id: ListenerId,
},
}
Expand description
Events related to the lifecycle and state of the engine itself.
Variants§
EngineStarted
Fired once when the engine’s run
loop begins.
EngineShutdown
Fired once when the engine’s run
loop is about to exit.
ListenerAdded
Fired when a new listener is successfully added to the engine.
Fields
§
id: ListenerId
ListenerRemoved
Fired when a listener is removed from the engine.
Fields
§
id: ListenerId
Trait Implementations§
Source§impl Clone for SystemEvent
impl Clone for SystemEvent
Source§fn clone(&self) -> SystemEvent
fn clone(&self) -> SystemEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SystemEvent
impl RefUnwindSafe for SystemEvent
impl Send for SystemEvent
impl Sync for SystemEvent
impl Unpin for SystemEvent
impl UnwindSafe for SystemEvent
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