pub struct BuiltinErrorMsg(/* private fields */);Expand description
A wrapper around a string that implements Error. Use this type to conveniently
throw log-and-forget errors from your extensions.
Trait Implementations§
Source§impl Debug for BuiltinErrorMsg
impl Debug for BuiltinErrorMsg
Source§impl Display for BuiltinErrorMsg
impl Display for BuiltinErrorMsg
Source§impl Error for BuiltinErrorMsg
impl Error for BuiltinErrorMsg
1.30.0 · 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 Freeze for BuiltinErrorMsg
impl RefUnwindSafe for BuiltinErrorMsg
impl Send for BuiltinErrorMsg
impl Sync for BuiltinErrorMsg
impl Unpin for BuiltinErrorMsg
impl UnwindSafe for BuiltinErrorMsg
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