pub struct ReplicaLogDirInfo { /* private fields */ }Expand description
Log directory information for a replica of a partition on a given broker.
Corresponds to DescribeReplicaLogDirsResult.ReplicaLogDirInfo.
Implementations§
Source§impl ReplicaLogDirInfo
impl ReplicaLogDirInfo
Sourcepub fn current_replica_log_dir(&self) -> Option<&str>
pub fn current_replica_log_dir(&self) -> Option<&str>
The current log directory of the replica of this partition on the given
broker. None if no replica is found for this partition on the broker.
Sourcepub fn current_replica_offset_lag(&self) -> i64
pub fn current_replica_offset_lag(&self) -> i64
Defined as max(HW of partition - LEO of the replica, 0).
Sourcepub fn future_replica_log_dir(&self) -> Option<&str>
pub fn future_replica_log_dir(&self) -> Option<&str>
The future log directory of the replica of this partition on the given
broker. None if the replica of this partition is not being moved to
another log directory on the given broker.
Sourcepub fn future_replica_offset_lag(&self) -> i64
pub fn future_replica_offset_lag(&self) -> i64
The LEO of the replica minus the LEO of the future log of this replica in
the destination log directory. -1 if either there is no replica for
this partition or the replica is not being moved to another log
directory on the given broker.
Trait Implementations§
Source§impl Clone for ReplicaLogDirInfo
impl Clone for ReplicaLogDirInfo
Source§fn clone(&self) -> ReplicaLogDirInfo
fn clone(&self) -> ReplicaLogDirInfo
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 ReplicaLogDirInfo
impl Debug for ReplicaLogDirInfo
Source§impl Default for ReplicaLogDirInfo
impl Default for ReplicaLogDirInfo
Source§impl Display for ReplicaLogDirInfo
impl Display for ReplicaLogDirInfo
Source§impl PartialEq for ReplicaLogDirInfo
impl PartialEq for ReplicaLogDirInfo
impl Eq for ReplicaLogDirInfo
impl StructuralPartialEq for ReplicaLogDirInfo
Auto Trait Implementations§
impl Freeze for ReplicaLogDirInfo
impl RefUnwindSafe for ReplicaLogDirInfo
impl Send for ReplicaLogDirInfo
impl Sync for ReplicaLogDirInfo
impl Unpin for ReplicaLogDirInfo
impl UnsafeUnpin for ReplicaLogDirInfo
impl UnwindSafe for ReplicaLogDirInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more