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
Available on non-
madsim only.impl Eq for Offset
Available on non-
madsim only.impl StructuralPartialEq for Offset
Available on non-
madsim only.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