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 InboxRoom
impl Move for InboxRoom
impl RefUnwindSafe for InboxRoom
impl Send for InboxRoom
impl Sync for InboxRoom
impl Unpin for InboxRoom
impl UnsafeUnpin for InboxRoom
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