pub struct ReplicaInfo { /* private fields */ }Expand description
A description of a replica on a particular broker.
Corresponds to org.apache.kafka.clients.admin.ReplicaInfo.
Implementations§
Source§impl ReplicaInfo
impl ReplicaInfo
Sourcepub fn size(&self) -> i64
pub fn size(&self) -> i64
The total size of the log segments in this replica in bytes.
This value does not include the size of data stored in remote storage.
Sourcepub fn offset_lag(&self) -> i64
pub fn offset_lag(&self) -> i64
The lag of the log’s LEO with respect to the partition’s high watermark (if it is the current log for the partition) or the current replica’s LEO (if it is the future log for the partition).
Trait Implementations§
Source§impl Clone for ReplicaInfo
impl Clone for ReplicaInfo
Source§fn clone(&self) -> ReplicaInfo
fn clone(&self) -> ReplicaInfo
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 ReplicaInfo
impl Debug for ReplicaInfo
Source§impl Display for ReplicaInfo
impl Display for ReplicaInfo
Source§impl PartialEq for ReplicaInfo
impl PartialEq for ReplicaInfo
impl Eq for ReplicaInfo
impl StructuralPartialEq for ReplicaInfo
Auto Trait Implementations§
impl Freeze for ReplicaInfo
impl RefUnwindSafe for ReplicaInfo
impl Send for ReplicaInfo
impl Sync for ReplicaInfo
impl Unpin for ReplicaInfo
impl UnsafeUnpin for ReplicaInfo
impl UnwindSafe for ReplicaInfo
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