pub struct EventCursor { /* private fields */ }Available on crate feature
std only.Expand description
A subscribed reader of a Trunk’s event log. Obtained via
Trunk::subscribe_events — read that method’s docs, and
Trunk::subscribe’s fan-out guidance, before creating more than a
handful of these.
Implementations§
Source§impl EventCursor
impl EventCursor
Sourcepub fn poll(&mut self) -> Option<EventCursorItem>
pub fn poll(&mut self) -> Option<EventCursorItem>
Pull the next item, if any is ready. Loss is always reported before
further data — the same cannot-be-skipped-past precedent as
SampleCursor::poll/SegmentCursor::poll.
Auto Trait Implementations§
impl Freeze for EventCursor
impl RefUnwindSafe for EventCursor
impl Send for EventCursor
impl Sync for EventCursor
impl Unpin for EventCursor
impl UnsafeUnpin for EventCursor
impl UnwindSafe for EventCursor
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