pub struct MemberState {
pub id: NodeId,
pub addr: SocketAddr,
pub incarnation: u64,
pub state: MemberStatus,
pub state_change: Instant,
pub is_primary: bool,
pub replicates: Option<NodeId>,
pub slots: Vec<SlotRange>,
}Expand description
Internal state of a cluster member as tracked by gossip.
Fields§
§id: NodeId§addr: SocketAddr§incarnation: u64§state: MemberStatus§state_change: Instant§is_primary: bool§replicates: Option<NodeId>The primary this member replicates from, if it is a replica.
slots: Vec<SlotRange>Trait Implementations§
Source§impl Clone for MemberState
impl Clone for MemberState
Source§fn clone(&self) -> MemberState
fn clone(&self) -> MemberState
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 moreAuto Trait Implementations§
impl Freeze for MemberState
impl RefUnwindSafe for MemberState
impl Send for MemberState
impl Sync for MemberState
impl Unpin for MemberState
impl UnsafeUnpin for MemberState
impl UnwindSafe for MemberState
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