#[non_exhaustive]pub enum EventCursorItem {
Event(EventEntry),
Lagged {
skipped: u64,
},
}Available on crate feature
std only.Expand description
One item EventCursor::poll can hand back: one event-log entry (which
may itself still be Segment/Utc-anchored — a cursor sees an entry
the instant it is published, not only once it resolves; see
EventEntry::anchor), or a loss report.
#[non_exhaustive]: the growth point for anything a cursor might need
to surface beyond “entry” or “loss” later, without a breaking change to
every match arm in the workspace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Event(EventEntry)
One event-log entry, in publish order.
Lagged
This cursor fell behind the event log’s ordinary
TrunkConfig::event_capacity eviction: skipped entries were
evicted before it read them. Exactly SampleCursorItem::Lagged’s
contract.
Trait Implementations§
Source§impl Clone for EventCursorItem
impl Clone for EventCursorItem
Source§fn clone(&self) -> EventCursorItem
fn clone(&self) -> EventCursorItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventCursorItem
impl RefUnwindSafe for EventCursorItem
impl Send for EventCursorItem
impl Sync for EventCursorItem
impl Unpin for EventCursorItem
impl UnsafeUnpin for EventCursorItem
impl UnwindSafe for EventCursorItem
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