Struct naia_client::Events
source · pub struct Events<E: Copy> { /* private fields */ }
Implementations§
source§impl<E: Copy> Events<E>
impl<E: Copy> Events<E>
pub fn is_empty(&self) -> bool
pub fn read<V: Event<E>>(&mut self) -> V::Iter
pub fn has<V: Event<E>>(&self) -> bool
pub fn has_messages(&self) -> bool
pub fn take_messages( &mut self ) -> HashMap<ChannelKind, HashMap<MessageKind, Vec<MessageContainer>>>
pub fn has_inserts(&self) -> bool
pub fn take_inserts(&mut self) -> Option<HashMap<ComponentKind, Vec<E>>>
pub fn has_updates(&self) -> bool
pub fn take_updates(&mut self) -> Option<HashMap<ComponentKind, Vec<(Tick, E)>>>
pub fn has_removes(&self) -> bool
pub fn take_removes( &mut self ) -> Option<HashMap<ComponentKind, Vec<(E, Box<dyn Replicate>)>>>
Trait Implementations§
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Events<E>
impl<E> Send for Events<E>where
E: Send,
impl<E> Sync for Events<E>where
E: Sync,
impl<E> Unpin for Events<E>where
E: Unpin,
impl<E> !UnwindSafe for Events<E>
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