[][src]Trait paxakos::NodeInfo

pub trait NodeInfo: 'static + Debug + Send + Sync {
    type Id: Identifier;
    fn id(&self) -> Self::Id;
}

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

Loading content...

Required methods

fn id(&self) -> Self::Id

A unique identifier for this node.

Loading content...

Implementations on Foreign Types

impl NodeInfo for ()[src]

To toy around with a single node cluster.

type Id = ()

Loading content...

Implementors

impl NodeInfo for PrototypingNode[src]

type Id = usize

Loading content...