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
Converts the integer representation of an offset used by librdkafka to
an Offset
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Offset
impl UnwindSafe for Offset
Blanket Implementations
Mutably borrows from an owned value. Read more