pub struct Room { /* private fields */ }
Implementations§
source§impl Room
impl Room
pub fn channel_id(&self) -> Option<u64>
pub fn is_sharing_project(&self) -> bool
pub fn mute_on_join(cx: &AppContext) -> bool
pub fn id(&self) -> u64
pub fn status(&self) -> RoomStatus
pub fn local_participant(&self) -> &LocalParticipant
pub fn remote_participants(&self) -> &BTreeMap<u64, RemoteParticipant>
pub fn remote_participant_for_peer_id( &self, peer_id: PeerId ) -> Option<&RemoteParticipant>
pub fn pending_participants(&self) -> &[Arc<User>]
pub fn contains_participant(&self, user_id: u64) -> bool
pub fn followers_for(&self, leader_id: PeerId, project_id: u64) -> &[PeerId]
sourcepub fn most_active_project(&self, cx: &AppContext) -> Option<(u64, u64)>
pub fn most_active_project(&self, cx: &AppContext) -> Option<(u64, u64)>
Returns the most ‘active’ projects, defined as most people in the project
pub fn room_update_completed(&mut self) -> impl Future<Output = ()>
pub fn join_project( &mut self, id: u64, language_registry: Arc<LanguageRegistry>, fs: Arc<dyn Fs>, cx: &mut ModelContext<'_, Self> ) -> Task<Result<Model<Project>>>
pub fn is_screen_sharing(&self) -> bool
pub fn is_sharing_mic(&self) -> bool
pub fn is_muted(&self, cx: &AppContext) -> bool
pub fn is_speaking(&self) -> bool
pub fn is_deafened(&self) -> Option<bool>
pub fn toggle_mute( &mut self, cx: &mut ModelContext<'_, Self> ) -> Result<Task<Result<()>>>
pub fn toggle_deafen( &mut self, cx: &mut ModelContext<'_, Self> ) -> Result<Task<Result<()>>>
Trait Implementations§
impl EventEmitter<Event> for Room
Auto Trait Implementations§
impl !RefUnwindSafe for Room
impl !Send for Room
impl !Sync for Room
impl Unpin for Room
impl !UnwindSafe for Room
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