pub trait NodeInfo: 'static + Clone + Debug + Send + Sync {
type Id: Identifier;
fn id(&self) -> Self::Id;
}
Expand description
Describes a node in a Paxakos cluster.
Beyond an identifier, a NodeInfo
implementation provides all the
information necessary to communicate with that node, typically a hostname
and a (TCP) port.
Required Associated Types
sourcetype Id: Identifier
type Id: Identifier
Identifier of this node.