pub struct PeerSpec {
pub host: String,
pub port: u16,
pub dc: String,
pub rack: String,
pub tokens: Vec<u32>,
pub is_secure: bool,
}Expand description
Description of a peer to add to the cluster.
This is the inverse of PeerSnapshot: a snapshot describes
a peer that already exists, a PeerSpec describes one that
the admin caller wants to join.
Fields§
§host: StringHostname or numeric IP.
port: u16TCP port.
dc: StringDatacenter name.
rack: StringRack name.
tokens: Vec<u32>Token list as u32s.
is_secure: boolTrue when the peer expects an encrypted dnode link.
Trait Implementations§
impl Eq for PeerSpec
impl StructuralPartialEq for PeerSpec
Auto Trait Implementations§
impl Freeze for PeerSpec
impl RefUnwindSafe for PeerSpec
impl Send for PeerSpec
impl Sync for PeerSpec
impl Unpin for PeerSpec
impl UnsafeUnpin for PeerSpec
impl UnwindSafe for PeerSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.