pub enum BackgroundTaskFailureReason {
Panic {
message: Option<String>,
panic_backtrace: Option<String>,
},
Error {
error: String,
},
EarlyTermination,
}Expand description
Reason why a background task failed.
Variants§
Panic
The task panicked.
Fields
Error
The task returned an error.
EarlyTermination
The task ended unexpectedly (for tasks expected to run forever).
Trait Implementations§
Source§impl Clone for BackgroundTaskFailureReason
impl Clone for BackgroundTaskFailureReason
Source§fn clone(&self) -> BackgroundTaskFailureReason
fn clone(&self) -> BackgroundTaskFailureReason
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 moreAuto Trait Implementations§
impl Freeze for BackgroundTaskFailureReason
impl RefUnwindSafe for BackgroundTaskFailureReason
impl Send for BackgroundTaskFailureReason
impl Sync for BackgroundTaskFailureReason
impl Unpin for BackgroundTaskFailureReason
impl UnsafeUnpin for BackgroundTaskFailureReason
impl UnwindSafe for BackgroundTaskFailureReason
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