pub struct SessionActor;Expand description
Spawns the actor task that owns an Agent.
The Agent moves into a background task; all interaction returns through the
SessionHandle. The task exits when the last handle drops.
Implementations§
Source§impl SessionActor
impl SessionActor
pub fn spawn(agent: Agent) -> SessionHandle
Auto Trait Implementations§
impl Freeze for SessionActor
impl RefUnwindSafe for SessionActor
impl Send for SessionActor
impl Sync for SessionActor
impl Unpin for SessionActor
impl UnsafeUnpin for SessionActor
impl UnwindSafe for SessionActor
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