Struct tectonic_errors::AnnotatedMessage
source · pub struct AnnotatedMessage { /* private fields */ }
Expand description
A simple annotated message that can be attached to errors using the
anyhow::Context
methods, or be used as an error type itself. The
recommended way to use this for error context is using atry!
or related
macros.
The std::fmt::Display
of this type yields its primary “message”. Consumers
that are aware of this type can obtain additional context through its
notes()
method.
Implementations§
source§impl AnnotatedMessage
impl AnnotatedMessage
Trait Implementations§
source§impl Debug for AnnotatedMessage
impl Debug for AnnotatedMessage
source§impl Default for AnnotatedMessage
impl Default for AnnotatedMessage
source§fn default() -> AnnotatedMessage
fn default() -> AnnotatedMessage
Returns the “default value” for a type. Read more
source§impl Display for AnnotatedMessage
impl Display for AnnotatedMessage
source§impl Error for AnnotatedMessage
impl Error for AnnotatedMessage
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for AnnotatedMessage
impl Send for AnnotatedMessage
impl Sync for AnnotatedMessage
impl Unpin for AnnotatedMessage
impl UnwindSafe for AnnotatedMessage
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