pub struct WorkspaceRoom { /* private fields */ }Implementations§
Source§impl WorkspaceRoom
impl WorkspaceRoom
pub fn workspace_id(&self) -> String
pub fn name(&self) -> String
pub fn description(&self) -> String
pub fn files(&self) -> HashMap<String, WorkspaceFile>
pub fn datasets(&self) -> HashMap<String, WorkspaceDatasetMeta>
Sourcepub fn repository_id(&self) -> Option<u64>
pub fn repository_id(&self) -> Option<u64>
The Termite repository whose machine runs the workspace’s scrapers, once there is one.
Sourcepub fn agent_text(&self) -> String
pub fn agent_text(&self) -> String
The model the workspace’s scraper agent thinks with.
pub fn hydrate(&self, state: &Value)
pub fn handle_event(&self, packet: &Value)
pub async fn get_chat( &self, hooks: Option<Arc<dyn RoomHooks>>, ) -> Result<WorkspaceChat>
pub async fn connect( authorization: &CredentialsOrApiKey, target_id: &str, opts: ConnectOptions, ) -> Result<(WorkspaceRoom, Presence)>
pub async fn join( authorization: &CredentialsOrApiKey, access_code: &str, hooks: Option<Arc<dyn Hooks>>, ) -> Result<(WorkspaceRoom, 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 WorkspaceRoom
impl Clone for WorkspaceRoom
Auto Trait Implementations§
impl Forget for WorkspaceRoom
impl Freeze for WorkspaceRoomwhere
*const ArcInner<RoomInner> is !null: Freeze,
PhantomData<ArcInner<RoomInner>>: Freeze,
*const ArcInner<Mutex<Workspace>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Workspace>>>: Freeze,
impl Move for WorkspaceRoom
impl RefUnwindSafe for WorkspaceRoomwhere
Atomic<usize>: RefUnwindSafe,
Chan<Message, Semaphore>: RefUnwindSafe,
Mutex<Vec<Presence>>: RefUnwindSafe,
RwLock<bool>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<Workspace>: RefUnwindSafe,
impl Send for WorkspaceRoom
impl Sync for WorkspaceRoom
impl Unpin for WorkspaceRoom
impl UnsafeUnpin for WorkspaceRoomwhere
*const ArcInner<RoomInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<RoomInner>>: UnsafeUnpin,
*const ArcInner<Mutex<Workspace>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Workspace>>>: UnsafeUnpin,
impl UnwindSafe for WorkspaceRoom
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