pub struct ListOffsetsPartition {
pub partition_index: i32,
pub current_leader_epoch: i32,
pub timestamp: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The partition index.
current_leader_epoch: i32The current leader epoch.
timestamp: i64The current timestamp.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ListOffsetsPartition
impl ListOffsetsPartition
pub fn with_partition_index(self, value: i32) -> Self
pub fn with_current_leader_epoch(self, value: i32) -> Self
pub fn with_timestamp(self, value: i64) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for ListOffsetsPartition
impl Clone for ListOffsetsPartition
Source§fn clone(&self) -> ListOffsetsPartition
fn clone(&self) -> ListOffsetsPartition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ListOffsetsPartition
impl Debug for ListOffsetsPartition
Source§impl Default for ListOffsetsPartition
impl Default for ListOffsetsPartition
Source§impl PartialEq for ListOffsetsPartition
impl PartialEq for ListOffsetsPartition
Source§fn eq(&self, other: &ListOffsetsPartition) -> bool
fn eq(&self, other: &ListOffsetsPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListOffsetsPartition
Auto Trait Implementations§
impl Freeze for ListOffsetsPartition
impl RefUnwindSafe for ListOffsetsPartition
impl Send for ListOffsetsPartition
impl Sync for ListOffsetsPartition
impl Unpin for ListOffsetsPartition
impl UnsafeUnpin for ListOffsetsPartition
impl UnwindSafe for ListOffsetsPartition
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