pub struct RuntimeRoom { /* private fields */ }Implementations§
Source§impl RuntimeRoom
impl RuntimeRoom
Sourcepub fn new(room: Room, state: &Value) -> RuntimeRoom
pub fn new(room: Room, state: &Value) -> RuntimeRoom
state is the connection snapshot: { name, model, constitution }.
pub fn name(&self) -> &str
pub fn constitution(&self) -> Constitution
pub fn model(&self) -> Text
pub fn agents(&self) -> HashMap<String, Agent>
pub fn update(&self, json: &Value)
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 RuntimeRoom
impl Clone for RuntimeRoom
Auto Trait Implementations§
impl Forget for RuntimeRoom
impl Freeze for RuntimeRoomwhere
*const ArcInner<RoomInner> is !null: Freeze,
PhantomData<ArcInner<RoomInner>>: Freeze,
*const ArcInner<Runtime> is !null: Freeze,
PhantomData<ArcInner<Runtime>>: Freeze,
impl Move for RuntimeRoom
impl RefUnwindSafe for RuntimeRoomwhere
Atomic<usize>: RefUnwindSafe,
Chan<Message, Semaphore>: RefUnwindSafe,
Mutex<Vec<Presence>>: RefUnwindSafe,
RwLock<bool>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<Vec<String>>: RefUnwindSafe,
Mutex<HashMap<String, Agent>>: RefUnwindSafe,
impl Send for RuntimeRoom
impl Sync for RuntimeRoom
impl Unpin for RuntimeRoom
impl UnsafeUnpin for RuntimeRoomwhere
*const ArcInner<RoomInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<RoomInner>>: UnsafeUnpin,
*const ArcInner<Runtime> is !null: UnsafeUnpin,
PhantomData<ArcInner<Runtime>>: UnsafeUnpin,
impl UnwindSafe for RuntimeRoom
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