pub struct LiveEventReceiver { /* private fields */ }Expand description
Consumer half of the live event channel.
Implementations§
Source§impl LiveEventReceiver
impl LiveEventReceiver
Sourcepub async fn recv(&self) -> Option<VersionedThreadEvent>
pub async fn recv(&self) -> Option<VersionedThreadEvent>
Receive the next event, waiting while the queue is empty.
Returns None once every sender was dropped and the queue drained.
Sourcepub fn take_dropped_ordered(&self) -> u64
pub fn take_dropped_ordered(&self) -> u64
Take and reset the count of ordered events dropped under saturation.
Sourcepub fn take_dropped_stale(&self) -> u64
pub fn take_dropped_stale(&self) -> u64
Take and reset the count of superseded streaming snapshots displaced under saturation. These are best-effort previews, not stream gaps.
Trait Implementations§
Source§impl Drop for LiveEventReceiver
impl Drop for LiveEventReceiver
Auto Trait Implementations§
impl Forget for LiveEventReceiver
impl Freeze for LiveEventReceiver
impl RefUnwindSafe for LiveEventReceiver
impl Send for LiveEventReceiver
impl Sync for LiveEventReceiver
impl Unpin for LiveEventReceiver
impl UnsafeUnpin for LiveEventReceiver
impl UnwindSafe for LiveEventReceiver
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