pub struct StreamSession<A: Agent> { /* private fields */ }Implementations§
Methods from Deref<Target = AgentSession<A>>§
Methods from Deref<Target = Address<A>>§
pub fn send(&self, msg: impl MessageFor<A>) -> Result<(), Error>
Sourcepub async fn join(&mut self) -> Result<AgentStatus, Error>
pub async fn join(&mut self) -> Result<AgentStatus, Error>
Important! join must use a reference to allow using it under DerefMut trait
pub fn sender<M>(&self) -> Recipient<M>where
M: MessageFor<A>,
pub fn event<E>(&self, event: E) -> Result<(), Error>
pub fn event_tagged<E, T>(&self, event: E, tag: T) -> Result<(), Error>
pub fn recipient<E>(&self) -> Recipient<E>
pub fn recipient_tagged<E, T>(&self, tag: T) -> Recipient<E>
pub fn interrupt(&self) -> Result<(), Error>
Trait Implementations§
Source§impl<A: Agent> AgentContext<A> for StreamSession<A>
impl<A: Agent> AgentContext<A> for StreamSession<A>
Source§impl<A: Agent> Default for StreamSession<A>
impl<A: Agent> Default for StreamSession<A>
Source§impl<A: Agent> Deref for StreamSession<A>
impl<A: Agent> Deref for StreamSession<A>
Source§impl<A: Agent> DerefMut for StreamSession<A>
impl<A: Agent> DerefMut for StreamSession<A>
Source§impl<A: Agent> ManagedContext for StreamSession<A>
impl<A: Agent> ManagedContext for StreamSession<A>
Auto Trait Implementations§
impl<A> !Freeze for StreamSession<A>
impl<A> !RefUnwindSafe for StreamSession<A>
impl<A> Send for StreamSession<A>
impl<A> !Sync for StreamSession<A>
impl<A> Unpin for StreamSession<A>
impl<A> UnsafeUnpin for StreamSession<A>
impl<A> !UnwindSafe for StreamSession<A>
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