pub struct Worker<W>{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<W> Actor for Worker<W>
impl<W> Actor for Worker<W>
fn started<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorHandlerContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stopped<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorHandlerContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl<W, M> Handler<WorkerMessage<M>> for Worker<W>
impl<W, M> Handler<WorkerMessage<M>> for Worker<W>
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<W> Freeze for Worker<W>where
W: Freeze,
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> UnsafeUnpin for Worker<W>where
W: UnsafeUnpin,
impl<W> !UnwindSafe for Worker<W>
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