Struct Failure
#[non_exhaustive]pub struct Failure {
pub phase: Phase,
pub class: FailureClass,
}Expand description
Which part of a step failed, and the class the failure stated.
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.phase: PhaseWhere the step failed.
class: FailureClassWhat the failure said to do next (SY-36).
Implementations§
§impl Failure
impl Failure
pub const fn new(phase: Phase, class: FailureClass) -> Self
pub const fn new(phase: Phase, class: FailureClass) -> Self
A failure in phase of class class.
Trait Implementations§
impl Copy for Failure
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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