pub struct N5f1;Expand description
Implementations§
Source§impl N5f1
impl N5f1
Sourcepub fn m_quorum(n: impl ToPrimitive) -> u32
pub fn m_quorum(n: impl ToPrimitive) -> u32
Sourcepub fn l_quorum(n: impl ToPrimitive) -> u32
pub fn l_quorum(n: impl ToPrimitive) -> u32
Compute n - f.
This is equivalent to Self::quorum.
§Panics
Panics if n is zero, negative, or exceeds u32::MAX.
Trait Implementations§
Source§impl Faults for N5f1
impl Faults for N5f1
Source§fn max_faults(n: impl ToPrimitive) -> u32
fn max_faults(n: impl ToPrimitive) -> u32
Compute the maximum number of faults that can be tolerated for
n participants. Read moreimpl Copy for N5f1
impl Eq for N5f1
impl StructuralPartialEq for N5f1
Auto Trait Implementations§
impl Freeze for N5f1
impl RefUnwindSafe for N5f1
impl Send for N5f1
impl Sync for N5f1
impl Unpin for N5f1
impl UnwindSafe for N5f1
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