[−][src]Struct coerce_rt::actor::ActorRef
Fields
id: ActorId
Methods
impl<A: Actor> ActorRef<A> where
A: Sync + Send + 'static,
[src]
A: Sync + Send + 'static,
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]
&'_ mut self,
msg: Msg
) -> Result<Msg::Result, ActorRefErr> where
Msg: 'static + Send + Sync,
A: Handler<Msg>,
Msg::Result: Send + Sync,
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]
&'_ mut self,
msg: Msg
) -> Result<(), ActorRefErr> where
Msg: 'static + Send + Sync,
A: Handler<Msg>,
Msg::Result: Send + Sync,
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]
F: FnMut(&mut A) -> R + 'static + Send + Sync,
R: 'static + Send + Sync,
pub async fn notify_exec<'_, F>(&'_ mut self, f: F) -> Result<(), ActorRefErr> where
F: FnMut(&mut A) + 'static + Send + Sync,
[src]
F: FnMut(&mut A) + 'static + Send + Sync,
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]
A: Actor + Sync + Send + 'static,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Actor> From<ActorRef<A>> for BoxedActorRef where
A: 'static + Send + Sync,
[src]
A: 'static + Send + Sync,
impl<A: Actor> From<BoxedActorRef> for ActorRef<A> where
A: 'static + Send + Sync,
[src]
A: 'static + Send + Sync,
fn from(b: BoxedActorRef) -> Self
[src]
impl<W: Actor> WorkerRefExt<W> for ActorRef<Worker<W>> where
W: 'static + Clone + Sync + Send,
[src]
W: 'static + Clone + Sync + Send,
fn dispatch<'life0, 'async_trait, M: Message>(
&'life0 mut self,
message: M
) -> Pin<Box<dyn Future<Output = Result<M::Result, ActorRefErr>> + Send + 'async_trait>> where
M: 'static + Send + Sync,
M::Result: 'static + Send + Sync,
W: Handler<M>,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
message: M
) -> Pin<Box<dyn Future<Output = Result<M::Result, ActorRefErr>> + Send + 'async_trait>> where
M: 'static + Send + Sync,
M::Result: 'static + Send + Sync,
W: Handler<M>,
M: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,