pub struct Diagnostic {
pub title: String,
pub message: String,
pub hint: Option<String>,
pub location: Option<(String, u32)>,
pub status: Status,
}Expand description
Everything the page knows about a failure.
Fields§
§title: String§message: String§hint: Option<String>§location: Option<(String, u32)>§status: StatusImplementations§
Source§impl Diagnostic
impl Diagnostic
pub fn from_error(error: &Error) -> Self
pub fn from_panic(message: String, location: Option<(String, u32)>) -> Self
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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