pub struct EvQue { /* private fields */ }Expand description
C event_que (dbEvent.c:69-82) — one ring, shared by every subscription
attached to it.
Exposes no mutating method: events enter through EventSink::post and
leave through EventReader::recv / EventReader::try_recv, which are
the sole owners of C’s two decisions. The accessors below are read-only
views of C’s counters for diagnostics and tests.
Implementations§
Source§impl EvQue
impl EvQue
Sourcepub fn n_duplicates(&self) -> usize
pub fn n_duplicates(&self) -> usize
C nDuplicates — entries queued beyond the first for their monitor,
across every subscription on this queue.
Sourcepub fn nreplace(&self, sid: u32) -> u64
pub fn nreplace(&self, sid: u32) -> u64
C nreplace for one monitor — posts that overwrote its last entry.
Auto Trait Implementations§
impl !Freeze for EvQue
impl RefUnwindSafe for EvQue
impl Send for EvQue
impl Sync for EvQue
impl Unpin for EvQue
impl UnsafeUnpin for EvQue
impl UnwindSafe for EvQue
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