pub struct TicketRoom { /* private fields */ }Implementations§
Source§impl TicketRoom
impl TicketRoom
pub fn ticket(&self) -> Ticket
pub fn hydrate(&self, state: &Value)
pub fn handle_event(&self, packet: &Value) -> bool
pub async fn get_chat( &self, hooks: Option<Arc<dyn RoomHooks>>, ) -> Result<(ChatRoom, Presence)>
pub async fn connect( authorization: &Credentials, target_id: &str, hooks: Option<Arc<dyn Hooks>>, ) -> Result<(TicketRoom, 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§
Source§impl Clone for TicketRoom
impl Clone for TicketRoom
Auto Trait Implementations§
impl Forget for TicketRoom
impl Freeze for TicketRoom
impl Move for TicketRoom
impl RefUnwindSafe for TicketRoomwhere
Atomic<usize>: RefUnwindSafe,
Chan<Message, Semaphore>: RefUnwindSafe,
Mutex<Vec<Presence>>: RefUnwindSafe,
RwLock<bool>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<Ticket>: RefUnwindSafe,
impl Send for TicketRoom
impl Sync for TicketRoom
impl Unpin for TicketRoom
impl UnsafeUnpin for TicketRoomwhere
*const ArcInner<RoomInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<RoomInner>>: UnsafeUnpin,
*const ArcInner<Mutex<Ticket>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Ticket>>>: UnsafeUnpin,
impl UnwindSafe for TicketRoom
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