pub struct ActorRef<A>{
pub id: ActorId,
/* private fields */
}Fields§
§id: ActorIdImplementations§
Source§impl<A> ActorRef<A>
impl<A> ActorRef<A>
pub async fn send<Msg>(&mut self, msg: Msg) -> Result<Msg::Result, ActorRefErr>
pub async fn notify<Msg>(&mut self, msg: Msg) -> Result<(), ActorRefErr>
pub async fn exec<F, R>(&mut self, f: F) -> Result<R, ActorRefErr>
pub async fn notify_exec<F>(&mut self, f: F) -> Result<(), ActorRefErr>
pub async fn status(&mut self) -> Result<ActorStatus, ActorRefErr>
pub async fn stop(&mut self) -> Result<ActorStatus, ActorRefErr>
Trait Implementations§
Source§impl<A> From<ActorRef<A>> for BoxedActorRef
impl<A> From<ActorRef<A>> for BoxedActorRef
Source§impl<A> From<BoxedActorRef> for ActorRef<A>
impl<A> From<BoxedActorRef> for ActorRef<A>
Source§fn from(b: BoxedActorRef) -> Self
fn from(b: BoxedActorRef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for ActorRef<A>
impl<A> !RefUnwindSafe for ActorRef<A>
impl<A> Send for ActorRef<A>
impl<A> Sync for ActorRef<A>
impl<A> Unpin for ActorRef<A>
impl<A> UnsafeUnpin for ActorRef<A>
impl<A> !UnwindSafe for ActorRef<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