pub struct StopAddress<A: Agent> { /* private fields */ }Implementations§
Source§impl<A: Agent> StopAddress<A>
impl<A: Agent> StopAddress<A>
pub fn to_stop_recipient<E>(self) -> StopRecipient<E>
Methods from Deref<Target = Address<A>>§
pub fn send(&self, msg: impl MessageFor<A>) -> Result<()>
Sourcepub async fn join(&mut self) -> Result<AgentStatus>
pub async fn join(&mut self) -> Result<AgentStatus>
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<()>
pub fn event_tagged<E, T>(&self, event: E, tag: T) -> Result<()>
pub fn recipient<E>(&self) -> Recipient<E>
pub fn recipient_tagged<E, T>(&self, tag: T) -> Recipient<E>
pub fn interrupt(&self) -> Result<()>
Trait Implementations§
Source§impl<A: Agent> Deref for StopAddress<A>
impl<A: Agent> Deref for StopAddress<A>
Source§impl<A: Agent> DerefMut for StopAddress<A>
impl<A: Agent> DerefMut for StopAddress<A>
Source§impl<A: Agent> Drop for StopAddress<A>
impl<A: Agent> Drop for StopAddress<A>
Auto Trait Implementations§
impl<A> Freeze for StopAddress<A>
impl<A> !RefUnwindSafe for StopAddress<A>
impl<A> Send for StopAddress<A>
impl<A> Sync for StopAddress<A>
impl<A> Unpin for StopAddress<A>
impl<A> !UnwindSafe for StopAddress<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