#[non_exhaustive]pub enum SweepError {
Store(StoreError),
Provenance(ProvenanceError),
}Expand description
Failure that aborts the sweep before it can process any orphan (e.g. the
run store could not be enumerated). Per-orphan failures do NOT surface
here — they are isolated into SweepSummary::failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Store(StoreError)
Reading or updating the run store failed.
Provenance(ProvenanceError)
Appending a terminal audit entry failed.
Trait Implementations§
Source§impl Debug for SweepError
impl Debug for SweepError
Source§impl Display for SweepError
impl Display for SweepError
Source§impl Error for SweepError
impl Error for SweepError
Source§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()
Source§impl From<ProvenanceError> for SweepError
impl From<ProvenanceError> for SweepError
Source§fn from(source: ProvenanceError) -> Self
fn from(source: ProvenanceError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for SweepError
impl From<StoreError> for SweepError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SweepError
impl !UnwindSafe for SweepError
impl Freeze for SweepError
impl Send for SweepError
impl Sync for SweepError
impl Unpin for SweepError
impl UnsafeUnpin for SweepError
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