pub struct Address<A: Agent + ?Sized> { /* private fields */ }Implementations§
Source§impl<A: Agent> Address<A>
impl<A: Agent> 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
Source§impl<A: Agent> Address<A>
impl<A: Agent> Address<A>
pub fn sender<M>(&self) -> Recipient<M>where
M: MessageFor<A>,
Source§impl<A: Agent> Address<A>
impl<A: Agent> Address<A>
pub fn to_stop_address(self) -> StopAddress<A>
Trait Implementations§
Source§impl<A: Agent> Interruptor for Address<A>
impl<A: Agent> Interruptor for Address<A>
fn interrupt(&self)
fn interrupt_with_level(&self, level: InterruptionLevel)
Source§impl<A, M> ToRecipient<M> for Address<A>
impl<A, M> ToRecipient<M> for Address<A>
fn to_recipient(&self) -> Recipient<M>
Auto Trait Implementations§
impl<A> Freeze for Address<A>
impl<A> !RefUnwindSafe for Address<A>
impl<A> Send for Address<A>
impl<A> Sync for Address<A>
impl<A> Unpin for Address<A>
impl<A> !UnwindSafe for Address<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