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<(UserKey, MessageContainer)>>>
pub fn has_requests(&self) -> bool
pub fn take_requests( &mut self, ) -> HashMap<ChannelKind, HashMap<MessageKind, Vec<(UserKey, GlobalResponseId, MessageContainer)>>>
pub fn has_auths(&self) -> bool
pub fn take_auths( &mut self, ) -> HashMap<MessageKind, Vec<(UserKey, MessageContainer)>>
pub fn has_inserts(&self) -> bool
pub fn take_inserts( &mut self, ) -> Option<HashMap<ComponentKind, Vec<(UserKey, E)>>>
pub fn has_updates(&self) -> bool
pub fn take_updates( &mut self, ) -> Option<HashMap<ComponentKind, Vec<(UserKey, E)>>>
pub fn has_removes(&self) -> bool
pub fn take_removes( &mut self, ) -> Option<HashMap<ComponentKind, Vec<(UserKey, E, Box<dyn Replicate>)>>>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Events<E>
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