pub struct UnboundedAddress<A: Actor> { /* private fields */ }
Implementations§
Source§impl<A: Actor> UnboundedAddress<A>
impl<A: Actor> UnboundedAddress<A>
pub async fn send<M: Message + 'static>(
&self,
message: M,
) -> Result<M::Result, ActorSendError>where
A: Handler<M>,
Sourcepub async fn send_unpack<M: Message + 'static, R>(
&self,
message: M,
) -> Result<R, ActorSendError>
pub async fn send_unpack<M: Message + 'static, R>( &self, message: M, ) -> Result<R, ActorSendError>
Sends a message and unpacks the result
Simplifies operations with some common kinds of results
pub fn notify<M: Message + 'static>(
&self,
message: M,
) -> Result<(), FailedToDeliver>where
A: Handler<M>,
pub fn notify_later<M: Message + 'static>(&self, message: M, after: Duration)where
A: Handler<M>,
pub fn notify_at<M: Message + 'static>(&self, message: M, at: Instant)where
A: Handler<M>,
pub fn notify_interval<M: Message + 'static, F: Fn() -> M + Send + 'static>(
&self,
create_message: F,
period: Duration,
) -> JoinHandle<()>where
A: Handler<M>,
pub fn is_closed(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for UnboundedAddress<A>
impl<A> RefUnwindSafe for UnboundedAddress<A>
impl<A> Send for UnboundedAddress<A>
impl<A> Sync for UnboundedAddress<A>
impl<A> Unpin for UnboundedAddress<A>
impl<A> UnwindSafe for UnboundedAddress<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