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