pub struct EventQueue<T> { /* private fields */ }Expand description
A bounded FIFO of pending events.
Every core in this crate hands events to the application through one of these. The bound
matters: a 4.8 kHz sampled-value stream, or a publisher whose frames nobody collects,
would otherwise grow an unbounded queue in a process that has stopped draining it. When
the queue is full the oldest event is dropped — the newest state is the one that
matters for protection — and EventQueue::dropped counts what was lost so the
application can tell a quiet system from one it is not keeping up with.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for EventQueue<T>
impl<T> Freeze for EventQueue<T>
impl<T> Move for EventQueue<T>
impl<T> RefUnwindSafe for EventQueue<T>where
T: RefUnwindSafe,
impl<T> Send for EventQueue<T>
impl<T> Sync for EventQueue<T>
impl<T> Unpin for EventQueue<T>
impl<T> UnsafeUnpin for EventQueue<T>
impl<T> UnwindSafe for EventQueue<T>where
RawVecInner: UnwindSafe,
T: UnwindSafe,
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