pub struct ClusterMember {
    pub node_id: NodeId,
    pub public_addr: SocketAddr,
    pub data_center: String,
}Fields§
§node_id: NodeIdA unique ID for the given node in the cluster.
public_addr: SocketAddrThe public address of the nod.
data_center: StringThe data center / availability zone the node is in.
This is used to select nodes for sending consistency tasks to.
Implementations§
Source§impl ClusterMember
 
impl ClusterMember
pub fn new( node_id: NodeId, public_addr: SocketAddr, data_center: String, ) -> Self
pub fn chitchat_id(&self) -> String
Trait Implementations§
Source§impl Clone for ClusterMember
 
impl Clone for ClusterMember
Source§fn clone(&self) -> ClusterMember
 
fn clone(&self) -> ClusterMember
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 ClusterMember
 
impl Debug for ClusterMember
Source§impl From<ClusterMember> for NodeId
 
impl From<ClusterMember> for NodeId
Source§fn from(member: ClusterMember) -> Self
 
fn from(member: ClusterMember) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClusterMember
 
impl PartialEq for ClusterMember
impl Eq for ClusterMember
impl StructuralPartialEq for ClusterMember
Auto Trait Implementations§
impl Freeze for ClusterMember
impl RefUnwindSafe for ClusterMember
impl Send for ClusterMember
impl Sync for ClusterMember
impl Unpin for ClusterMember
impl UnwindSafe for ClusterMember
Blanket Implementations§
Source§impl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
 
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
    _: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
 
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
 
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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.Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
 
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
 
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.