pub struct Message<T: Actor> { /* private fields */ }Expand description
A message that can be sent to a worker thread.
You don’t need to implement this trait. It is a wrapper for data that you sent. This message contains the data to be processed and a result channel. The result channel is used to send the result back to the sender.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Message<T>
impl<T> !RefUnwindSafe for Message<T>
impl<T> Send for Message<T>
impl<T> Sync for Message<T>
impl<T> Unpin for Message<T>
impl<T> !UnwindSafe for Message<T>
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