Struct mpc_protocol::MeetingManager 
source · pub struct MeetingManager { /* private fields */ }Expand description
Manages a collection of meeting points.
Implementations§
source§impl MeetingManager
 
impl MeetingManager
sourcepub fn new_meeting(
    &mut self,
    owner_key: Vec<u8>,
    owner_id: UserId,
    slots: HashSet<UserId>,
    data: Value
) -> MeetingId
 
pub fn new_meeting( &mut self, owner_key: Vec<u8>, owner_id: UserId, slots: HashSet<UserId>, data: Value ) -> MeetingId
Create a new meeting point.
sourcepub fn remove_meeting(&mut self, id: &MeetingId) -> Option<Meeting>
 
pub fn remove_meeting(&mut self, id: &MeetingId) -> Option<Meeting>
Remove a meeting.
sourcepub fn get_meeting(&self, id: &MeetingId) -> Option<&Meeting>
 
pub fn get_meeting(&self, id: &MeetingId) -> Option<&Meeting>
Get a meeting.
sourcepub fn get_meeting_mut(&mut self, id: &MeetingId) -> Option<&mut Meeting>
 
pub fn get_meeting_mut(&mut self, id: &MeetingId) -> Option<&mut Meeting>
Get a mutable meeting.
sourcepub fn expired_keys(&self, timeout: u64) -> Vec<MeetingId>
 
pub fn expired_keys(&self, timeout: u64) -> Vec<MeetingId>
Get the keys of meetings that have expired.
Trait Implementations§
source§impl Default for MeetingManager
 
impl Default for MeetingManager
source§fn default() -> MeetingManager
 
fn default() -> MeetingManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MeetingManager
impl Send for MeetingManager
impl Sync for MeetingManager
impl Unpin for MeetingManager
impl UnwindSafe for MeetingManager
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