pub struct EventQueue<E> { /* private fields */ }Implementations§
Source§impl<E> EventQueue<E>
impl<E> EventQueue<E>
pub fn new() -> Self
pub fn push(&self, event: E)
pub fn push_capped(&self, event: E, max: usize)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn drain_matching(&self, take: impl Fn(&E) -> bool) -> Vec<E>
pub fn drain_all(&self) -> Vec<E>
pub fn clear(&self)
Trait Implementations§
Source§impl<E> Clone for EventQueue<E>
impl<E> Clone for EventQueue<E>
Source§impl<E: Debug> Debug for EventQueue<E>
impl<E: Debug> Debug for EventQueue<E>
Auto Trait Implementations§
impl<E> Freeze for EventQueue<E>
impl<E> RefUnwindSafe for EventQueue<E>
impl<E> Send for EventQueue<E>where
E: Send,
impl<E> Sync for EventQueue<E>where
E: Send,
impl<E> Unpin for EventQueue<E>
impl<E> UnsafeUnpin for EventQueue<E>
impl<E> UnwindSafe for EventQueue<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