pub struct ListOffsetsRequestPartition {
pub partition_index: Int32,
pub timestamp: Int64,
pub max_num_offsets: Option<Int32>,
}Fields§
§partition_index: Int32The partition index.
timestamp: Int64The current timestamp.
Depending on the version this will return:
- version 0:
max_num_offsetsoffsets that are smaller/equal than this timestamp. - version 1 and later: return timestamp and offset of the first/message greater/equal than this timestamp
Per KIP-79 this can have the following special values:
-1: latest offset-2: earlist offset
max_num_offsets: Option<Int32>The maximum number of offsets to report.
Defaults to 1.
Removed in version 1.
Trait Implementations§
Source§impl Debug for ListOffsetsRequestPartition
impl Debug for ListOffsetsRequestPartition
Source§impl<W> WriteVersionedType<W> for ListOffsetsRequestPartitionwhere
W: Write,
impl<W> WriteVersionedType<W> for ListOffsetsRequestPartitionwhere
W: Write,
fn write_versioned( &self, writer: &mut W, version: ApiVersion, ) -> Result<(), WriteVersionedError>
Auto Trait Implementations§
impl Freeze for ListOffsetsRequestPartition
impl RefUnwindSafe for ListOffsetsRequestPartition
impl Send for ListOffsetsRequestPartition
impl Sync for ListOffsetsRequestPartition
impl Unpin for ListOffsetsRequestPartition
impl UnwindSafe for ListOffsetsRequestPartition
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