pub struct GroupIdentifier(/* private fields */);Implementations§
source§impl GroupIdentifier
impl GroupIdentifier
pub fn new(replicas: usize) -> Self
pub fn size(&self) -> usize
pub fn primary(&self, view: View) -> ReplicaIdentifier
pub fn replicas( &self, view: View ) -> impl Iterator<Item = ReplicaIdentifier> + DoubleEndedIterator + Clone
pub fn sub_majority(&self) -> usize
Trait Implementations§
source§impl Clone for GroupIdentifier
impl Clone for GroupIdentifier
source§fn clone(&self) -> GroupIdentifier
fn clone(&self) -> GroupIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GroupIdentifier
impl Debug for GroupIdentifier
source§impl Default for GroupIdentifier
impl Default for GroupIdentifier
source§impl Hash for GroupIdentifier
impl Hash for GroupIdentifier
source§impl IntoIterator for GroupIdentifier
impl IntoIterator for GroupIdentifier
source§impl PartialEq for GroupIdentifier
impl PartialEq for GroupIdentifier
source§fn eq(&self, other: &GroupIdentifier) -> bool
fn eq(&self, other: &GroupIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for GroupIdentifier
impl Eq for GroupIdentifier
impl StructuralPartialEq for GroupIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for GroupIdentifier
impl Send for GroupIdentifier
impl Sync for GroupIdentifier
impl Unpin for GroupIdentifier
impl UnwindSafe for GroupIdentifier
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