pub enum ReconnectPosition {
Slot(u64),
Live,
LiveAfterGap {
abandoned: u64,
},
}Expand description
Where the generated Yellowstone runtime should resume its stream.
Option<u64> cannot express this: “no checkpoint to resume from” and
“gave up on the checkpoint” are both None, and only the second one
loses data. Naming them apart is what lets the caller mark the hole.
Variants§
Slot(u64)
Resume from this slot; nothing is lost.
Live
Start live because nothing has been processed yet.
LiveAfterGap
Start live after abandoning a checkpoint the provider would not serve.
Every slot between abandoned and the live tip is lost.
Implementations§
Trait Implementations§
Source§impl Clone for ReconnectPosition
impl Clone for ReconnectPosition
impl Copy for ReconnectPosition
Source§impl Debug for ReconnectPosition
impl Debug for ReconnectPosition
impl Eq for ReconnectPosition
Source§impl PartialEq for ReconnectPosition
impl PartialEq for ReconnectPosition
impl StructuralPartialEq for ReconnectPosition
Auto Trait Implementations§
impl Freeze for ReconnectPosition
impl RefUnwindSafe for ReconnectPosition
impl Send for ReconnectPosition
impl Sync for ReconnectPosition
impl Unpin for ReconnectPosition
impl UnsafeUnpin for ReconnectPosition
impl UnwindSafe for ReconnectPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.