[][src]Struct coerce_rt::actor::ActorRef

pub struct ActorRef<A: Actor> where
    A: 'static + Send + Sync
{ pub id: ActorId, // some fields omitted }

Fields

id: ActorId

Methods

impl<A: Actor> ActorRef<A> where
    A: Sync + Send + 'static, 
[src]

pub async fn send<'_, Msg: Message>(
    &'_ mut self,
    msg: Msg
) -> Result<Msg::Result, ActorRefErr> where
    Msg: 'static + Send + Sync,
    A: Handler<Msg>,
    Msg::Result: Send + Sync
[src]

pub async fn notify<'_, Msg: Message>(
    &'_ mut self,
    msg: Msg
) -> Result<(), ActorRefErr> where
    Msg: 'static + Send + Sync,
    A: Handler<Msg>,
    Msg::Result: Send + Sync
[src]

pub async fn exec<'_, F, R>(&'_ mut self, f: F) -> Result<R, ActorRefErr> where
    F: FnMut(&mut A) -> R + 'static + Send + Sync,
    R: 'static + Send + Sync
[src]

pub async fn notify_exec<'_, F>(&'_ mut self, f: F) -> Result<(), ActorRefErr> where
    F: FnMut(&mut A) + 'static + Send + Sync
[src]

pub async fn status<'_>(&'_ mut self) -> Result<ActorStatus, ActorRefErr>[src]

pub async fn stop<'_>(&'_ mut self) -> Result<ActorStatus, ActorRefErr>[src]

Trait Implementations

impl<A> Clone for ActorRef<A> where
    A: Actor + Sync + Send + 'static, 
[src]

impl<A: Actor> From<ActorRef<A>> for BoxedActorRef where
    A: 'static + Send + Sync
[src]

impl<A: Actor> From<BoxedActorRef> for ActorRef<A> where
    A: 'static + Send + Sync
[src]

impl<W: Actor> WorkerRefExt<W> for ActorRef<Worker<W>> where
    W: 'static + Clone + Sync + Send
[src]

Auto Trait Implementations

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> !UnwindSafe for ActorRef<A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,