[−][src]Struct coerce_rt::worker::WorkerMessage
Methods
impl<M: Message> WorkerMessage<M> where
M: 'static + Sync + Send,
M::Result: 'static + Sync + Send,
[src]
M: 'static + Sync + Send,
M::Result: 'static + Sync + Send,
pub fn new(message: M, res_tx: Sender<M::Result>) -> WorkerMessage<M>
[src]
Trait Implementations
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,
impl<M: Message> Message for WorkerMessage<M> where
M: 'static + Sync + Send,
M::Result: 'static + Sync + Send,
[src]
M: 'static + Sync + Send,
M::Result: 'static + Sync + Send,
Auto Trait Implementations
impl<M> !RefUnwindSafe for WorkerMessage<M>
impl<M> Send for WorkerMessage<M> where
<M as Message>::Result: Send,
<M as Message>::Result: Send,
impl<M> Sync for WorkerMessage<M> where
<M as Message>::Result: Send,
<M as Message>::Result: Send,
impl<M> Unpin for WorkerMessage<M> where
M: Unpin,
M: Unpin,
impl<M> !UnwindSafe for WorkerMessage<M>
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> Message for T where
T: TimerTick + 'static + Sync + Send,
[src]
T: TimerTick + 'static + Sync + Send,
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>,