[−][src]Struct coerce_rt::worker::Worker
Methods
impl<W: Actor> Worker<W> where
W: 'static + Clone + Sync + Send,
[src]
W: 'static + Clone + Sync + Send,
pub async fn new<'_>(
state: W,
count: usize,
context: &'_ mut ActorContext
) -> Result<WorkerRef<W>, ActorRefErr>
[src]
state: W,
count: usize,
context: &'_ mut ActorContext
) -> Result<WorkerRef<W>, ActorRefErr>
Trait Implementations
impl<W: Actor> Actor for Worker<W> where
W: 'static + Clone + Sync + Send,
[src]
W: 'static + Clone + Sync + Send,
fn started<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
[src]
&'life0 mut self,
_ctx: &'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
fn stopped<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
[src]
&'life0 mut self,
_ctx: &'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
impl<W: Actor, M: Message> Handler<WorkerMessage<M>> for Worker<W> where
W: 'static + Sync + Send,
M: 'static + Sync + Send,
W: Handler<M>,
M::Result: 'static + Sync + Send,
[src]
W: 'static + Sync + Send,
M: 'static + Sync + Send,
W: Handler<M>,
M::Result: 'static + Sync + Send,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
message: WorkerMessage<M>,
ctx: &'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
message: WorkerMessage<M>,
ctx: &'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<W> !RefUnwindSafe for Worker<W>
impl<W> Send for Worker<W>
impl<W> Sync for Worker<W>
impl<W> Unpin for Worker<W> where
W: Unpin,
W: Unpin,
impl<W> !UnwindSafe for Worker<W>
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<A> GetActorRef for A where
A: Actor,
[src]
A: Actor,
impl<F, A, R> Handler<Exec<F, A, R>> for A where
A: 'static + Actor + Sync + Send,
F: FnMut(&mut A) -> R + 'static + Send + Sync,
R: 'static + Send + Sync,
[src]
A: 'static + Actor + Sync + Send,
F: FnMut(&mut A) -> R + 'static + Send + Sync,
R: 'static + Send + Sync,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut Self,
Exec<F, A, R>,
&'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = R> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
A: 'async_trait,
[src]
&'life0 mut Self,
Exec<F, A, R>,
&'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = R> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
A: 'async_trait,
impl<A> Handler<Status> for A where
A: 'static + Actor + Sync + Send,
[src]
A: 'static + Actor + Sync + Send,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut Self,
Status,
&'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ActorStatus> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
A: 'async_trait,
[src]
&'life0 mut Self,
Status,
&'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ActorStatus> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
A: 'async_trait,
impl<A> Handler<Stop> for A where
A: Actor + 'static + Sync + Send,
[src]
A: Actor + 'static + Sync + Send,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut Self,
Stop,
&'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ActorStatus> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
A: 'async_trait,
[src]
&'life0 mut Self,
Stop,
&'life1 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ActorStatus> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
A: 'async_trait,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,