#[non_exhaustive]pub struct Failure<E> {
pub step: Step,
pub committed: bool,
pub reason: Reason<E>,
}Expand description
Failure retains the phase and whether selection has already committed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.step: StepFailed operation.
committed: boolWhether the new selection is authoritative despite this failure.
reason: Reason<E>Why the operation failed.
Trait Implementations§
Source§impl<E: Error + 'static> Error for Failure<E>
impl<E: Error + 'static> Error for Failure<E>
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()
Auto Trait Implementations§
impl<E> Freeze for Failure<E>
impl<E> RefUnwindSafe for Failure<E>where
Reason<E>: RefUnwindSafe,
impl<E> Send for Failure<E>
impl<E> Sync for Failure<E>
impl<E> Unpin for Failure<E>
impl<E> UnsafeUnpin for Failure<E>where
Reason<E>: UnsafeUnpin,
impl<E> UnwindSafe for Failure<E>where
Reason<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