pub struct LeadershipInfo {
pub leader: Option<NodeId>,
pub cluster_nodes: Vec<NodeId>,
pub cluster_size: usize,
}Expand description
Information about the current leadership state
Fields§
§leader: Option<NodeId>Current leader node ID
cluster_nodes: Vec<NodeId>All nodes in the cluster view
cluster_size: usizeNumber of nodes in cluster
Trait Implementations§
Source§impl Clone for LeadershipInfo
impl Clone for LeadershipInfo
Source§fn clone(&self) -> LeadershipInfo
fn clone(&self) -> LeadershipInfo
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 LeadershipInfo
impl Debug for LeadershipInfo
Source§impl<'de> Deserialize<'de> for LeadershipInfo
impl<'de> Deserialize<'de> for LeadershipInfo
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
Source§impl PartialEq for LeadershipInfo
impl PartialEq for LeadershipInfo
Source§impl Serialize for LeadershipInfo
impl Serialize for LeadershipInfo
impl Eq for LeadershipInfo
impl StructuralPartialEq for LeadershipInfo
Auto Trait Implementations§
impl Freeze for LeadershipInfo
impl RefUnwindSafe for LeadershipInfo
impl Send for LeadershipInfo
impl Sync for LeadershipInfo
impl Unpin for LeadershipInfo
impl UnsafeUnpin for LeadershipInfo
impl UnwindSafe for LeadershipInfo
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