pub enum BackgroundResult {
Completed(String),
Failed(String),
}Expand description
The final result of a background task.
Variants§
Completed(String)
Completed successfully, containing the task’s final text output.
Failed(String)
Failure (including cancellation), with an error description.
Trait Implementations§
Source§impl Clone for BackgroundResult
impl Clone for BackgroundResult
Source§fn clone(&self) -> BackgroundResult
fn clone(&self) -> BackgroundResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackgroundResult
impl Debug for BackgroundResult
impl Eq for BackgroundResult
Source§impl PartialEq for BackgroundResult
impl PartialEq for BackgroundResult
Source§fn eq(&self, other: &BackgroundResult) -> bool
fn eq(&self, other: &BackgroundResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackgroundResult
Auto Trait Implementations§
impl Freeze for BackgroundResult
impl RefUnwindSafe for BackgroundResult
impl Send for BackgroundResult
impl Sync for BackgroundResult
impl Unpin for BackgroundResult
impl UnsafeUnpin for BackgroundResult
impl UnwindSafe for BackgroundResult
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