pub struct PartyList { /* private fields */ }Expand description
Ordered roster of parties for a session.
The ordering defines each party’s index, which cfm_tc_session_create
receives as this_party_idx. The threshold T is tracked separately on
crate::session::Session — a PartyList is purely the roster.
Implementations§
Source§impl PartyList
impl PartyList
pub fn new() -> PartyList
pub fn from_parties(parties: Vec<Party>) -> PartyList
pub fn parties(&self) -> &[Party]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, party: Party)
Trait Implementations§
impl Eq for PartyList
impl StructuralPartialEq for PartyList
Auto Trait Implementations§
impl Freeze for PartyList
impl RefUnwindSafe for PartyList
impl Send for PartyList
impl Sync for PartyList
impl Unpin for PartyList
impl UnsafeUnpin for PartyList
impl UnwindSafe for PartyList
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