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.
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 Freeze for MeetingManager
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