pub enum Node<ID>where
ID: Ord,{
Id(ID),
Subtree(QuorumTree<ID>),
}Expand description
A child of a QuorumTree.
A node can be either a leaf node ID or a nested quorum tree. Nested trees allow hierarchical quorum rules such as “two data centers, each selected by a local majority”.
Variants§
Trait Implementations§
Source§impl<ID> CanonicalId for Node<ID>where
ID: CanonicalId + Ord,
impl<ID> CanonicalId for Node<ID>where
ID: CanonicalId + Ord,
impl<ID> Eq for Node<ID>
Source§impl<ID> Ord for Node<ID>
impl<ID> Ord for Node<ID>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<ID> PartialOrd for Node<ID>where
ID: Ord + PartialOrd,
impl<ID> PartialOrd for Node<ID>where
ID: Ord + PartialOrd,
impl<ID> StructuralPartialEq for Node<ID>
Auto Trait Implementations§
impl<ID> Freeze for Node<ID>where
ID: Freeze,
impl<ID> RefUnwindSafe for Node<ID>where
ID: RefUnwindSafe,
impl<ID> Send for Node<ID>where
ID: Send,
impl<ID> Sync for Node<ID>where
ID: Sync,
impl<ID> Unpin for Node<ID>where
ID: Unpin,
impl<ID> UnsafeUnpin for Node<ID>where
ID: UnsafeUnpin,
impl<ID> UnwindSafe for Node<ID>where
ID: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more