pub struct ActorHandle<M, R> { /* private fields */ }Expand description
Handle for communicating with an actor
Implementations§
Source§impl<M, R> ActorHandle<M, R>
impl<M, R> ActorHandle<M, R>
Sourcepub async fn send(&self, msg: M) -> Result<()>
pub async fn send(&self, msg: M) -> Result<()>
Send a message to the actor without waiting for response
§Errors
Returns an error if the actor has stopped and can no longer receive messages
Auto Trait Implementations§
impl<M, R> Freeze for ActorHandle<M, R>
impl<M, R> RefUnwindSafe for ActorHandle<M, R>
impl<M, R> Send for ActorHandle<M, R>
impl<M, R> Sync for ActorHandle<M, R>
impl<M, R> Unpin for ActorHandle<M, R>
impl<M, R> UnwindSafe for ActorHandle<M, R>
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