pub struct DoctorFailure {
pub code: &'static DoctorCodeDef,
pub message: String,
}Expand description
One failed doctor check: its stable code from the catalogue
(crate::codes) plus the human message, which is byte-identical to
the prose path’s.
Fields§
§code: &'static DoctorCodeDefThe catalogue definition this failure is classified under.
message: StringThe failure message, exactly as the prose path prints it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DoctorFailure
impl RefUnwindSafe for DoctorFailure
impl Send for DoctorFailure
impl Sync for DoctorFailure
impl Unpin for DoctorFailure
impl UnsafeUnpin for DoctorFailure
impl UnwindSafe for DoctorFailure
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