pub enum FetchOffset {
Earliest,
Latest,
ByTime(i64),
}
Expand description
Possible values when querying a topic’s offset.
See KafkaClient::fetch_offsets
.
Variants§
Earliest
Receive the earliest available offset.
Latest
Receive the latest offset.
ByTime(i64)
Used to ask for all messages before a certain time (ms); unix timestamp in milliseconds. See https://cwiki.apache.org/confluence/display/KAFKA/Writing+a+Driver+for+Kafka#WritingaDriverforKafka-Offsets
Trait Implementations§
Source§impl Clone for FetchOffset
impl Clone for FetchOffset
Source§fn clone(&self) -> FetchOffset
fn clone(&self) -> FetchOffset
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FetchOffset
impl Debug for FetchOffset
impl Copy for FetchOffset
Auto Trait Implementations§
impl Freeze for FetchOffset
impl RefUnwindSafe for FetchOffset
impl Send for FetchOffset
impl Sync for FetchOffset
impl Unpin for FetchOffset
impl UnwindSafe for FetchOffset
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