pub enum StartOffset {
Earliest,
Latest,
At(i64),
}Expand description
Where a partition starts reading.
An enum rather than the i64 the protocol uses, because EARLIEST and
LATEST are negative sentinels sharing a parameter with real offsets — a
distinction worth having the compiler keep.
Variants§
Trait Implementations§
Source§impl Clone for StartOffset
impl Clone for StartOffset
Source§fn clone(&self) -> StartOffset
fn clone(&self) -> StartOffset
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 moreimpl Copy for StartOffset
Source§impl Debug for StartOffset
impl Debug for StartOffset
impl Eq for StartOffset
Source§impl PartialEq for StartOffset
impl PartialEq for StartOffset
impl StructuralPartialEq for StartOffset
Auto Trait Implementations§
impl Freeze for StartOffset
impl RefUnwindSafe for StartOffset
impl Send for StartOffset
impl Sync for StartOffset
impl Unpin for StartOffset
impl UnsafeUnpin for StartOffset
impl UnwindSafe for StartOffset
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.