pub enum S2StartFrom {
SeqNum(u64),
Timestamp(u64),
TailOffset(u64),
Beginning,
Tail,
}Expand description
Where to start reading from the S2 stream.
Variants§
SeqNum(u64)
Start from a specific sequence number.
Timestamp(u64)
Start from a specific timestamp (milliseconds since epoch).
TailOffset(u64)
Start from N records before the tail.
Beginning
Start from the beginning (sequence number 0).
Tail
Start from the tail (new records only).
Trait Implementations§
Source§impl Clone for S2StartFrom
impl Clone for S2StartFrom
Source§impl Debug for S2StartFrom
impl Debug for S2StartFrom
Source§impl Default for S2StartFrom
impl Default for S2StartFrom
Source§impl<'de> Deserialize<'de> for S2StartFrom
impl<'de> Deserialize<'de> for S2StartFrom
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for S2StartFrom
Source§impl PartialEq for S2StartFrom
impl PartialEq for S2StartFrom
Source§impl Serialize for S2StartFrom
impl Serialize for S2StartFrom
impl StructuralPartialEq for S2StartFrom
Auto Trait Implementations§
impl Freeze for S2StartFrom
impl RefUnwindSafe for S2StartFrom
impl Send for S2StartFrom
impl Sync for S2StartFrom
impl Unpin for S2StartFrom
impl UnsafeUnpin for S2StartFrom
impl UnwindSafe for S2StartFrom
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.