pub struct Session { /* private fields */ }
Implementations§
Source§impl Session
impl Session
pub fn new() -> Self
pub fn session_id(&self) -> SessionId
pub fn set_current_frontend(&mut self, frontend: Arc<Mutex<Frontend>>)
pub fn current_frontend(&self) -> Result<Arc<Mutex<Frontend>>, AgentError>
pub async fn get_activity( &self, activity_id: &ActivityId, ) -> Result<Arc<Activity>, AgentError>
pub async fn create_terminal_activity( &self, ) -> Result<Arc<Activity>, AgentError>
pub async fn add_activity(&self, activity: Arc<Activity>)
Auto Trait Implementations§
impl !Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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