Enum rdkafka::topic_partition_list::Offset
source · pub enum Offset {
Beginning,
End,
Stored,
Invalid,
Offset(i64),
OffsetTail(i64),
}
Expand description
A Kafka offset.
Variants§
Beginning
Start consuming from the beginning of the partition.
End
Start consuming from the end of the partition.
Stored
Start consuming from the stored offset.
Invalid
Offset not assigned or invalid.
Offset(i64)
A specific offset to consume from.
Note that while the offset is a signed integer, negative offsets will be rejected when passed to librdkafka.
OffsetTail(i64)
An offset relative to the end of the partition.
Note that while the offset is a signed integer, negative offsets will be rejected when passed to librdkafka.
Implementations§
Trait Implementations§
impl Copy for Offset
impl Eq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.