[][src]Struct coerce_rt::worker::Worker

pub struct Worker<W: Actor> where
    W: 'static + Sync + Send
{ /* fields omitted */ }

Methods

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

pub async fn new<'_>(
    state: W,
    count: usize,
    context: &'_ mut ActorContext
) -> Result<WorkerRef<W>, ActorRefErr>
[src]

Trait Implementations

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

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]

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

impl<W> !UnwindSafe for Worker<W>

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<A> GetActorRef for A where
    A: Actor
[src]

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]

impl<A> Handler<Status> for A where
    A: 'static + Actor + Sync + Send
[src]

impl<A> Handler<Stop> for A where
    A: Actor + 'static + Sync + Send
[src]

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

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>,