pub enum Membership {
Signer(Participant),
Member(Participant),
}Expand description
The scheme’s own place in the participant set.
Variants§
Signer(Participant)
A participant that holds signing material at this index.
Member(Participant)
A participant without signing material at this index.
Implementations§
Source§impl Membership
impl Membership
Sourcepub const fn index(&self) -> Participant
pub const fn index(&self) -> Participant
Returns the participant’s index.
Sourcepub const fn signer(&self) -> Option<Participant>
pub const fn signer(&self) -> Option<Participant>
Returns the participant’s index if it holds signing material.
Trait Implementations§
Source§impl Clone for Membership
impl Clone for Membership
impl Copy for Membership
Source§impl Debug for Membership
impl Debug for Membership
impl Eq for Membership
Source§impl PartialEq for Membership
impl PartialEq for Membership
impl StructuralPartialEq for Membership
Auto Trait Implementations§
impl Freeze for Membership
impl RefUnwindSafe for Membership
impl Send for Membership
impl Sync for Membership
impl Unpin for Membership
impl UnsafeUnpin for Membership
impl UnwindSafe for Membership
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