pub struct InboxRoom { /* private fields */ }Expand description
An inbox’s live room. Its presences are who has the inbox open; it rings them for calls to the inbox’s lines, and lists the calls in progress there, which anyone in it can join.
Implementations§
Source§impl InboxRoom
impl InboxRoom
pub fn inbox_id(&self) -> String
pub fn name(&self) -> String
Sourcepub fn ringing(&self) -> HashMap<String, IncomingCall>
pub fn ringing(&self) -> HashMap<String, IncomingCall>
Calls ringing on the inbox’s lines that nobody has taken yet.
Sourcepub fn calls(&self) -> HashMap<String, ActiveCall>
pub fn calls(&self) -> HashMap<String, ActiveCall>
Calls in progress on the inbox’s lines.
pub fn hydrate(&self, state: &Value)
pub fn handle_event(&self, packet: &Value) -> bool
pub async fn connect( authorization: &CredentialsOrApiKey, target_id: &str, opts: ConnectOptions, ) -> Result<(InboxRoom, Presence)>
Methods from Deref<Target = Room>§
pub fn endpoint(&self) -> &str
pub fn ws(&self) -> RoomSocket
pub fn id(&self) -> &str
pub fn get_presences(&self) -> Vec<Presence>
The caller’s Credentials or ApiKey from the live authorization pack.
pub fn post(&self, packet: &Value)
pub fn disconnect(&self)
pub async fn generate_access_code(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Forget for InboxRoom
impl Freeze for InboxRoomwhere
*const ArcInner<RoomInner> is !null: Freeze,
PhantomData<ArcInner<RoomInner>>: Freeze,
*const ArcInner<Mutex<InboxLive>> is !null: Freeze,
PhantomData<ArcInner<Mutex<InboxLive>>>: Freeze,
impl Move for InboxRoom
impl RefUnwindSafe for InboxRoomwhere
Atomic<usize>: RefUnwindSafe,
Chan<Message, Semaphore>: RefUnwindSafe,
Mutex<Vec<Presence>>: RefUnwindSafe,
RwLock<bool>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<InboxLive>: RefUnwindSafe,
impl Send for InboxRoom
impl Sync for InboxRoom
impl Unpin for InboxRoom
impl UnsafeUnpin for InboxRoomwhere
*const ArcInner<RoomInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<RoomInner>>: UnsafeUnpin,
*const ArcInner<Mutex<InboxLive>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<InboxLive>>>: UnsafeUnpin,
impl UnwindSafe for InboxRoom
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