pub struct Ceremonies { /* private fields */ }Expand description
The live ceremonies (decision 5).
Implementations§
Source§impl Ceremonies
impl Ceremonies
pub fn with_capacity(logins: usize, sessions: usize) -> Self
Sourcepub fn begin(&self, ceremony: Ceremony, now: i64) -> String
pub fn begin(&self, ceremony: Ceremony, now: i64) -> String
Begin ceremony and return its id (64 hex characters). Expired
ceremonies are dropped first, and the session’s earlier ceremony of
the same kind; past its pool’s capacity, the oldest live one of that
pool goes too.
Sourcepub fn take(&self, id: &str, now: i64) -> Option<Ceremony>
pub fn take(&self, id: &str, now: i64) -> Option<Ceremony>
Take the ceremony id names: it is gone whatever its finish then
finds. None when there is none, or it has expired.
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Ceremonies
impl RefUnwindSafe for Ceremonies
impl Send for Ceremonies
impl Sync for Ceremonies
impl Unpin for Ceremonies
impl UnsafeUnpin for Ceremonies
impl UnwindSafe for Ceremonies
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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