pub trait LeadershipAwareNode<I>: Node {
    fn lax_leadership(&self) -> &[LeadershipFor<Self>];
    fn strict_leadership(&self) -> &[LeadershipFor<Self>];
}

Required Methods

Leadership as assumed by this node.

Note: This information is unreliable. A node will assume itself or another node to be leader when that node “owns” the greatest coordination number observed for that round. That means neither that the node managed to achieve a quorum with that number, nor that no other node achieved a quorum with an even higher number.

Leadership as assumed by this node.

Note: This information is unreliable. Strict leadership is inferred when a node sent a proposal or a commit message. That means the node was leader at some point, but anothor node may have supplanted it by now.

Implementors