pub struct ListOffsetsResultInfo { /* private fields */ }Expand description
Per-partition offset information returned by Admin::list_offsets.
Implementations§
Source§impl ListOffsetsResultInfo
impl ListOffsetsResultInfo
Sourcepub fn new(offset: i64, timestamp: i64, leader_epoch: Option<i32>) -> Self
pub fn new(offset: i64, timestamp: i64, leader_epoch: Option<i32>) -> Self
Creates a new result info.
§Arguments
offset- the offset.timestamp- the timestamp of the record at the offset.leader_epoch- the leader epoch, orNoneif not known.
Sourcepub fn leader_epoch(&self) -> Option<i32>
pub fn leader_epoch(&self) -> Option<i32>
Returns the leader epoch associated with the offset, if known.
Trait Implementations§
Source§impl Clone for ListOffsetsResultInfo
impl Clone for ListOffsetsResultInfo
Source§fn clone(&self) -> ListOffsetsResultInfo
fn clone(&self) -> ListOffsetsResultInfo
Returns a duplicate 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 ListOffsetsResultInfo
impl Debug for ListOffsetsResultInfo
Auto Trait Implementations§
impl Freeze for ListOffsetsResultInfo
impl RefUnwindSafe for ListOffsetsResultInfo
impl Send for ListOffsetsResultInfo
impl Sync for ListOffsetsResultInfo
impl Unpin for ListOffsetsResultInfo
impl UnsafeUnpin for ListOffsetsResultInfo
impl UnwindSafe for ListOffsetsResultInfo
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