pub struct PartitionSnapshot {
pub partition: i32,
pub current_leader_epoch: i32,
pub snapshot_id: SnapshotId,
pub position: i64,
pub replica_directory_id: KafkaUuid,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition: i32The partition index.
current_leader_epoch: i32The current leader epoch of the partition, -1 for unknown leader epoch.
snapshot_id: SnapshotIdThe snapshot endOffset and epoch to fetch.
position: i64The byte position within the snapshot to start fetching from.
replica_directory_id: KafkaUuidThe directory id of the follower fetching.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl PartitionSnapshot
impl PartitionSnapshot
pub fn with_partition(self, value: i32) -> Self
pub fn with_current_leader_epoch(self, value: i32) -> Self
pub fn with_snapshot_id(self, value: SnapshotId) -> Self
pub fn with_position(self, value: i64) -> Self
pub fn with_replica_directory_id(self, value: KafkaUuid) -> 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 PartitionSnapshot
impl Clone for PartitionSnapshot
Source§fn clone(&self) -> PartitionSnapshot
fn clone(&self) -> PartitionSnapshot
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 PartitionSnapshot
impl Debug for PartitionSnapshot
Source§impl Default for PartitionSnapshot
impl Default for PartitionSnapshot
Source§impl PartialEq for PartitionSnapshot
impl PartialEq for PartitionSnapshot
Source§fn eq(&self, other: &PartitionSnapshot) -> bool
fn eq(&self, other: &PartitionSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionSnapshot
Auto Trait Implementations§
impl Freeze for PartitionSnapshot
impl RefUnwindSafe for PartitionSnapshot
impl Send for PartitionSnapshot
impl Sync for PartitionSnapshot
impl Unpin for PartitionSnapshot
impl UnsafeUnpin for PartitionSnapshot
impl UnwindSafe for PartitionSnapshot
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