pub struct Participant(/* private fields */);Expand description
Represents a participant/validator index within a consensus committee.
Participant indices are used to identify validators in attestations, votes, and certificates. The index corresponds to the position of the validator’s public key in the ordered participant set.
Implementations§
Source§impl Participant
impl Participant
Trait Implementations§
Source§impl Clone for Participant
impl Clone for Participant
Source§fn clone(&self) -> Participant
fn clone(&self) -> Participant
Returns a duplicate 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 Participant
impl Debug for Participant
Source§impl Default for Participant
impl Default for Participant
Source§fn default() -> Participant
fn default() -> Participant
Returns the “default value” for a type. Read more
Source§impl Display for Participant
Available on neither commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.
impl Display for Participant
Available on neither
commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.Source§impl EncodeSize for Participant
Available on neither commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.
impl EncodeSize for Participant
Available on neither
commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.Source§fn encode_size(&self) -> usize
fn encode_size(&self) -> usize
Returns the encoded size of this value (in bytes).
Source§impl From<Participant> for usize
Available on neither commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.
impl From<Participant> for usize
Available on neither
commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.Source§fn from(p: Participant) -> Self
fn from(p: Participant) -> Self
Converts to this type from the input type.
Source§impl Hash for Participant
impl Hash for Participant
Source§impl Ord for Participant
impl Ord for Participant
Source§fn cmp(&self, other: &Participant) -> Ordering
fn cmp(&self, other: &Participant) -> Ordering
1.21.0 · 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 PartialEq for Participant
impl PartialEq for Participant
Source§impl PartialOrd for Participant
impl PartialOrd for Participant
Source§impl Read for Participant
Available on neither commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.
impl Read for Participant
Available on neither
commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.Source§impl Write for Participant
Available on neither commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.
impl Write for Participant
Available on neither
commonware_stability_GAMMA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_RESERVED.impl Copy for Participant
impl Eq for Participant
impl StructuralPartialEq for Participant
Auto Trait Implementations§
impl Freeze for Participant
impl RefUnwindSafe for Participant
impl Send for Participant
impl Sync for Participant
impl Unpin for Participant
impl UnwindSafe for Participant
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