pub enum SeqCheck {
Deliver {
dropped: u64,
},
Gap {
expected: u64,
received: u64,
},
Discard,
}Expand description
What to do with an event, given its stream and sequence number.
Variants§
Deliver
Deliver it. dropped counts the numbers a lossy stream skipped before
it; always 0 on a lossless stream.
Gap
A lossless stream skipped or repeated a number and is now out of sync: request a resync. The event itself is not delivered.
Discard
Drop it: its stream awaits a resync, or a lossy stream went backwards.
Trait Implementations§
impl Copy for SeqCheck
impl Eq for SeqCheck
impl StructuralPartialEq for SeqCheck
Auto Trait Implementations§
impl Freeze for SeqCheck
impl RefUnwindSafe for SeqCheck
impl Send for SeqCheck
impl Sync for SeqCheck
impl Unpin for SeqCheck
impl UnsafeUnpin for SeqCheck
impl UnwindSafe for SeqCheck
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