pub struct ReplicaIdentifier(/* private fields */);Implementations§
source§impl ReplicaIdentifier
impl ReplicaIdentifier
pub fn group(&self) -> GroupIdentifier
pub fn primary(&self, view: View) -> Self
pub fn sub_majority(&self) -> usize
Trait Implementations§
source§impl Clone for ReplicaIdentifier
impl Clone for ReplicaIdentifier
source§fn clone(&self) -> ReplicaIdentifier
fn clone(&self) -> ReplicaIdentifier
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 ReplicaIdentifier
impl Debug for ReplicaIdentifier
source§impl From<ReplicaIdentifier> for NonVolatileState
impl From<ReplicaIdentifier> for NonVolatileState
source§fn from(identifier: ReplicaIdentifier) -> Self
fn from(identifier: ReplicaIdentifier) -> Self
Converts to this type from the input type.
source§impl Hash for ReplicaIdentifier
impl Hash for ReplicaIdentifier
source§impl PartialEq for ReplicaIdentifier
impl PartialEq for ReplicaIdentifier
source§fn eq(&self, other: &ReplicaIdentifier) -> bool
fn eq(&self, other: &ReplicaIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ReplicaIdentifier
impl PartialOrd for ReplicaIdentifier
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ReplicaIdentifier
impl Eq for ReplicaIdentifier
impl StructuralPartialEq for ReplicaIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for ReplicaIdentifier
impl Send for ReplicaIdentifier
impl Sync for ReplicaIdentifier
impl Unpin for ReplicaIdentifier
impl UnwindSafe for ReplicaIdentifier
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