pub struct Activity { /* private fields */ }
Implementations§
Source§impl Activity
impl Activity
pub async fn create_pty( session_id: SessionId, ) -> Result<Arc<Activity>, AgentError>
pub fn activity_id(&self) -> ActivityId
pub async fn parent_session(&self) -> Result<Arc<Mutex<Session>>, AgentError>
pub async fn receive_input( &self, payload: ActivityInputBlob, ) -> Result<(), AgentError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Activity
impl !RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl !UnwindSafe for Activity
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