pub struct NodeGossipState {
pub id: NodeId,
pub state: NodeState,
pub incarnation: u64,
pub cluster_addr: SocketAddr,
pub client_addr: SocketAddr,
pub rack: Option<String>,
pub capabilities: NodeCapabilities,
}Expand description
Serializable node state for gossip
Fields§
§id: NodeId§state: NodeState§incarnation: u64§cluster_addr: SocketAddr§client_addr: SocketAddr§rack: Option<String>§capabilities: NodeCapabilitiesTrait Implementations§
Source§impl Clone for NodeGossipState
impl Clone for NodeGossipState
Source§fn clone(&self) -> NodeGossipState
fn clone(&self) -> NodeGossipState
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 NodeGossipState
impl Debug for NodeGossipState
Source§impl<'de> Deserialize<'de> for NodeGossipState
impl<'de> Deserialize<'de> for NodeGossipState
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 From<&Node> for NodeGossipState
impl From<&Node> for NodeGossipState
Auto Trait Implementations§
impl Freeze for NodeGossipState
impl RefUnwindSafe for NodeGossipState
impl Send for NodeGossipState
impl Sync for NodeGossipState
impl Unpin for NodeGossipState
impl UnsafeUnpin for NodeGossipState
impl UnwindSafe for NodeGossipState
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