Enum ScheduleRunError
pub enum ScheduleRunError<'a, E> {
NotPrepared,
Callback {
name: &'a str,
kind: SystemEntryKind,
error: E,
report: ScheduleReport,
},
}Expand description
A run failure. Names borrow the schedule, avoiding allocation on failure.
Variants§
NotPrepared
No work ran. Prepare after construction, clear, or any successful edit.
Callback
The callback’s original error and exact progress; no rollback or retry.
Trait Implementations§
§impl<'a, E> Debug for ScheduleRunError<'a, E>where
E: Debug,
impl<'a, E> Debug for ScheduleRunError<'a, E>where
E: Debug,
§impl<E> Display for ScheduleRunError<'_, E>where
E: Display,
impl<E> Display for ScheduleRunError<'_, E>where
E: Display,
§impl<E> Error for ScheduleRunError<'_, E>where
E: Error + 'static,
impl<E> Error for ScheduleRunError<'_, E>where
E: Error + 'static,
§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<'a, E> PartialEq for ScheduleRunError<'a, E>where
E: PartialEq,
impl<'a, E> PartialEq for ScheduleRunError<'a, E>where
E: PartialEq,
impl<'a, E> Eq for ScheduleRunError<'a, E>where
E: Eq,
impl<'a, E> StructuralPartialEq for ScheduleRunError<'a, E>
Auto Trait Implementations§
impl<'a, E> Freeze for ScheduleRunError<'a, E>where
E: Freeze,
impl<'a, E> RefUnwindSafe for ScheduleRunError<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for ScheduleRunError<'a, E>where
E: Send,
impl<'a, E> Sync for ScheduleRunError<'a, E>where
E: Sync,
impl<'a, E> Unpin for ScheduleRunError<'a, E>where
E: Unpin,
impl<'a, E> UnwindSafe for ScheduleRunError<'a, E>where
E: 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