Enum rdkafka::topic_partition_list::Offset
source · 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§
source§impl PartialEq<Offset> for Offset
impl PartialEq<Offset> for Offset
impl Copy for Offset
impl Eq for Offset
impl StructuralEq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.