pub enum TaskError<R, Route> {
ResultAfterCompletion {
result: R,
reply_to: Route,
},
ResultAfterCancellation {
result: R,
reply_to: Route,
},
CancellationAfterCompletion {
reply_to: Route,
},
CancellationAfterCancellation {
reply_to: Route,
},
}Expand description
Rejected terminal transition when a test or nonconforming interpreter invokes a task after its stopping action.
Variants§
ResultAfterCompletion
A second result followed successful completion; ownership is returned.
ResultAfterCancellation
A result followed cancellation; ownership is returned.
CancellationAfterCompletion
Cancellation followed successful completion.
Fields
§
reply_to: RouteCancellationAfterCancellation
Cancellation was repeated.
Fields
§
reply_to: RouteTrait Implementations§
Source§impl<R, Route> Error for TaskError<R, Route>
impl<R, Route> Error for TaskError<R, Route>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl<R: Eq, Route: Eq> Eq for TaskError<R, Route>
impl<R, Route> StructuralPartialEq for TaskError<R, Route>
Auto Trait Implementations§
impl<R, Route> Freeze for TaskError<R, Route>
impl<R, Route> RefUnwindSafe for TaskError<R, Route>where
R: RefUnwindSafe,
Route: RefUnwindSafe,
impl<R, Route> Send for TaskError<R, Route>
impl<R, Route> Sync for TaskError<R, Route>
impl<R, Route> Unpin for TaskError<R, Route>
impl<R, Route> UnsafeUnpin for TaskError<R, Route>where
R: UnsafeUnpin,
Route: UnsafeUnpin,
impl<R, Route> UnwindSafe for TaskError<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