pub enum TaskMessage<R, Route> {
Complete {
result: R,
reply_to: Route,
},
Cancel {
reply_to: Route,
},
}Expand description
Commands accepted by a Task.
Variants§
Complete
Complete with one owned result and its typed recipient.
Cancel
Cancel before completion and report to a typed recipient.
Fields
§
reply_to: RouteRecipient for the cancellation fact.
Auto Trait Implementations§
impl<R, Route> Freeze for TaskMessage<R, Route>
impl<R, Route> RefUnwindSafe for TaskMessage<R, Route>where
R: RefUnwindSafe,
Route: RefUnwindSafe,
impl<R, Route> Send for TaskMessage<R, Route>
impl<R, Route> Sync for TaskMessage<R, Route>
impl<R, Route> Unpin for TaskMessage<R, Route>
impl<R, Route> UnsafeUnpin for TaskMessage<R, Route>where
R: UnsafeUnpin,
Route: UnsafeUnpin,
impl<R, Route> UnwindSafe for TaskMessage<R, Route>where
R: UnwindSafe,
Route: UnwindSafe,
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