pub struct RosterDraft { /* private fields */ }Expand description
A roster that is not signed yet, with the root key its keyring will carry.
Implementations§
Source§impl RosterDraft
impl RosterDraft
Sourcepub fn genesis(cache_id: CacheId, members: Vec<MemberEntry>) -> Result<Self>
pub fn genesis(cache_id: CacheId, members: Vec<MemberEntry>) -> Result<Self>
The first roster of a cache: version 1, epoch 1 and a fresh root key.
pub fn version(&self) -> u64
pub fn epoch(&self) -> u32
pub fn members(&self) -> &[MemberEntry]
Auto Trait Implementations§
impl Forget for RosterDraft
impl Freeze for RosterDraft
impl Move for RosterDraft
impl RefUnwindSafe for RosterDraft
impl Send for RosterDraftwhere
RawVecInner: Send,
impl Sync for RosterDraftwhere
RawVecInner: Sync,
impl Unpin for RosterDraft
impl UnsafeUnpin for RosterDraft
impl UnwindSafe for RosterDraftwhere
RawVecInner: UnwindSafe,
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