Trait paxakos::NodeInfo [−][src]
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.
Associated Types
type Id: Identifier
type Id: Identifier
Identifier of this node.
Required methods
Implementations on Foreign Types
To toy around with a single node cluster.