pub struct SyncStateSet {
pub broker_name: String,
pub master_broker_id: u64,
pub master_addr: String,
pub master_epoch: u64,
pub sync_state_set: Vec<u64>,
pub last_update_timestamp: u64,
}Expand description
Sync state set (In-Sync Replicas)
Tracks the set of replicas that are considered in-sync with the master. Similar to Kafka’s ISR (In-Sync Replica) concept.
Fields§
§broker_name: StringBroker name (identifies the broker set)
master_broker_id: u64Master broker ID
master_addr: StringMaster address
master_epoch: u64Master epoch
sync_state_set: Vec<u64>Sync state set (list of in-sync broker IDs)
last_update_timestamp: u64Last update timestamp
Implementations§
Source§impl SyncStateSet
impl SyncStateSet
Trait Implementations§
Source§impl Clone for SyncStateSet
impl Clone for SyncStateSet
Source§fn clone(&self) -> SyncStateSet
fn clone(&self) -> SyncStateSet
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 SyncStateSet
impl Debug for SyncStateSet
Source§impl<'de> Deserialize<'de> for SyncStateSet
impl<'de> Deserialize<'de> for SyncStateSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SyncStateSet
impl RefUnwindSafe for SyncStateSet
impl Send for SyncStateSet
impl Sync for SyncStateSet
impl Unpin for SyncStateSet
impl UnwindSafe for SyncStateSet
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