Struct fluvio_sc_schema::partition::ReplicaStatus
source · pub struct ReplicaStatus {
pub spu: i32,
pub hw: i64,
pub leo: i64,
}
Fields§
§spu: i32
§hw: i64
§leo: i64
Implementations§
source§impl ReplicaStatus
impl ReplicaStatus
pub fn new(spu: i32, hw: i64, leo: i64) -> ReplicaStatus
sourcepub fn leader_lag(&self, leader_status: &ReplicaStatus) -> i64
pub fn leader_lag(&self, leader_status: &ReplicaStatus) -> i64
compute lag score respect to leader
pub fn high_watermark_lag(&self, leader_status: &ReplicaStatus) -> i64
Trait Implementations§
source§impl Clone for ReplicaStatus
impl Clone for ReplicaStatus
source§fn clone(&self) -> ReplicaStatus
fn clone(&self) -> ReplicaStatus
Returns a copy 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 ReplicaStatus
impl Debug for ReplicaStatus
source§impl Decoder for ReplicaStatus
impl Decoder for ReplicaStatus
source§impl Default for ReplicaStatus
impl Default for ReplicaStatus
source§fn default() -> ReplicaStatus
fn default() -> ReplicaStatus
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReplicaStatus
impl<'de> Deserialize<'de> for ReplicaStatus
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ReplicaStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ReplicaStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ReplicaStatus
impl Display for ReplicaStatus
source§impl Encoder for ReplicaStatus
impl Encoder for ReplicaStatus
source§impl PartialEq for ReplicaStatus
impl PartialEq for ReplicaStatus
source§fn eq(&self, other: &ReplicaStatus) -> bool
fn eq(&self, other: &ReplicaStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReplicaStatus
impl Serialize for ReplicaStatus
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ReplicaStatus
impl StructuralPartialEq for ReplicaStatus
Auto Trait Implementations§
impl Freeze for ReplicaStatus
impl RefUnwindSafe for ReplicaStatus
impl Send for ReplicaStatus
impl Sync for ReplicaStatus
impl Unpin for ReplicaStatus
impl UnwindSafe for ReplicaStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.