pub struct GameplayEvents {
pub dropped: u64,
/* private fields */
}Expand description
The events waiting for the host to drain them. Never saved.
Fields§
§dropped: u64Events pushed out of a full ring since the engine was made.
Implementations§
Source§impl GameplayEvents
impl GameplayEvents
Sourcepub fn drain(&mut self) -> Vec<GameplayEvent>
pub fn drain(&mut self) -> Vec<GameplayEvent>
Every buffered event, oldest first; the ring is empty afterwards.
Sourcepub fn iter(&self) -> impl Iterator<Item = &GameplayEvent>
pub fn iter(&self) -> impl Iterator<Item = &GameplayEvent>
The buffered events, oldest first, left in place.
Trait Implementations§
Source§impl Clone for GameplayEvents
impl Clone for GameplayEvents
Source§fn clone(&self) -> GameplayEvents
fn clone(&self) -> GameplayEvents
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameplayEvents
impl Debug for GameplayEvents
Source§impl Default for GameplayEvents
impl Default for GameplayEvents
Source§fn default() -> GameplayEvents
fn default() -> GameplayEvents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GameplayEvents
impl RefUnwindSafe for GameplayEvents
impl Send for GameplayEvents
impl Sync for GameplayEvents
impl Unpin for GameplayEvents
impl UnsafeUnpin for GameplayEvents
impl UnwindSafe for GameplayEvents
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