pub struct BackgroundTaskFailure {
pub task: BackgroundTaskInfo,
pub reason: BackgroundTaskFailureReason,
}Expand description
A report of a background task failure.
This is sent through the broadcast channel when a monitored task fails.
Fields§
§task: BackgroundTaskInfoInformation about the task that failed.
reason: BackgroundTaskFailureReasonWhy the task failed.
Trait Implementations§
Source§impl Clone for BackgroundTaskFailure
impl Clone for BackgroundTaskFailure
Source§fn clone(&self) -> BackgroundTaskFailure
fn clone(&self) -> BackgroundTaskFailure
Returns a duplicate of the value. Read more
1.0.0 · 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 BackgroundTaskFailure
impl RefUnwindSafe for BackgroundTaskFailure
impl Send for BackgroundTaskFailure
impl Sync for BackgroundTaskFailure
impl Unpin for BackgroundTaskFailure
impl UnsafeUnpin for BackgroundTaskFailure
impl UnwindSafe for BackgroundTaskFailure
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