pub struct BasicNode {
pub addr: String,
}
Expand description
Minimal node information.
The most common usage is to store the connecting address of a node. So that an application does not need an additional store to support its RaftNetwork implementation.
An application is also free not to use this storage and implements its own node-id to address mapping.
Fields§
§addr: String
Implementations§
Trait Implementations§
source§impl PartialEq<BasicNode> for BasicNode
impl PartialEq<BasicNode> for BasicNode
impl Eq for BasicNode
impl StructuralEq for BasicNode
impl StructuralPartialEq for BasicNode
Auto Trait Implementations§
impl RefUnwindSafe for BasicNode
impl Send for BasicNode
impl Sync for BasicNode
impl Unpin for BasicNode
impl UnwindSafe for BasicNode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.