pub enum TaskResult {
Ok,
Err(Error),
}Expand description
Represents the result of a TaskResult. A task may return either () or Result<(), Error> for flexibility which will be converted to TaskResult sent to the runtime.
Variants§
Trait Implementations§
Source§impl From<()> for TaskResult
impl From<()> for TaskResult
Auto Trait Implementations§
impl Freeze for TaskResult
impl RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl UnwindSafe for TaskResult
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