pub struct ListOffsetsPartitionResponse {
pub partition_index: i32,
pub error_code: i16,
pub timestamp: i64,
pub offset: i64,
pub leader_epoch: i32,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The partition index.
error_code: i16The partition error code, or 0 if there was no error.
timestamp: i64The timestamp associated with the returned offset.
offset: i64The returned offset.
leader_epoch: i32The leader epoch associated with the returned offset.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ListOffsetsPartitionResponse
impl ListOffsetsPartitionResponse
pub fn with_partition_index(self, value: i32) -> Self
pub fn with_error_code(self, value: i16) -> Self
pub fn with_timestamp(self, value: i64) -> Self
pub fn with_offset(self, value: i64) -> Self
pub fn with_leader_epoch(self, value: i32) -> 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 ListOffsetsPartitionResponse
impl Clone for ListOffsetsPartitionResponse
Source§fn clone(&self) -> ListOffsetsPartitionResponse
fn clone(&self) -> ListOffsetsPartitionResponse
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 ListOffsetsPartitionResponse
impl Debug for ListOffsetsPartitionResponse
Source§impl PartialEq for ListOffsetsPartitionResponse
impl PartialEq for ListOffsetsPartitionResponse
Source§fn eq(&self, other: &ListOffsetsPartitionResponse) -> bool
fn eq(&self, other: &ListOffsetsPartitionResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListOffsetsPartitionResponse
Auto Trait Implementations§
impl Freeze for ListOffsetsPartitionResponse
impl RefUnwindSafe for ListOffsetsPartitionResponse
impl Send for ListOffsetsPartitionResponse
impl Sync for ListOffsetsPartitionResponse
impl Unpin for ListOffsetsPartitionResponse
impl UnsafeUnpin for ListOffsetsPartitionResponse
impl UnwindSafe for ListOffsetsPartitionResponse
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