Struct hash_ring::NodeInfo
[−]
[src]
pub struct NodeInfo { pub host: &'static str, pub port: u16, }
As a convenience, rust-hash-ring provides a default struct to hold node information. It is optional and you can define your own.
Fields
host: &'static str
port: u16
Trait Implementations
impl Clone for NodeInfo
[src]
fn clone(&self) -> NodeInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for NodeInfo
[src]
impl PartialEq for NodeInfo
[src]
fn eq(&self, __arg_0: &NodeInfo) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NodeInfo) -> bool
[src]
This method tests for !=
.