Struct btrun::ActorHandle
source · pub struct ActorHandle { /* private fields */ }
Implementations§
source§impl ActorHandle
impl ActorHandle
sourcepub async fn send<T: 'static + SendMsg>(
&self,
from: ActorName,
msg: T
) -> Result<()>
pub async fn send<T: 'static + SendMsg>( &self, from: ActorName, msg: T ) -> Result<()>
Sends a message to the actor represented by this handle.
pub async fn call_through<T: 'static + CallMsg>( &self, from: ActorName, msg: T ) -> Result<T::Reply>
pub async fn returned(&mut self) -> Result<()>
pub fn abort(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ActorHandle
impl Send for ActorHandle
impl Sync for ActorHandle
impl Unpin for ActorHandle
impl !UnwindSafe for ActorHandle
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