pub struct GoodError(pub String);Tuple Fields§
§0: StringTrait Implementations§
Source§impl Error for GoodError
impl Error for GoodError
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 GoodError
impl RefUnwindSafe for GoodError
impl Send for GoodError
impl Sync for GoodError
impl Unpin for GoodError
impl UnsafeUnpin for GoodError
impl UnwindSafe for GoodError
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
Source§impl<T> DebugDisplay for Twhere
T: Debug,
impl<T> DebugDisplay for Twhere
T: Debug,
Source§impl<T> DebugDisplay for Twhere
T: Debug,
impl<T> DebugDisplay for Twhere
T: Debug,
Source§impl<T> ErrContext for T
impl<T> ErrContext for T
Source§fn context(self, message: impl ToString) -> Error
fn context(self, message: impl ToString) -> Error
Add a simple context string onto an error, converting it to
loga::Error in
the process.Source§fn context_with(
self,
message: impl ToString,
attrs: impl Fn(&mut HashMap<&'static str, String>),
) -> Error
fn context_with( self, message: impl ToString, attrs: impl Fn(&mut HashMap<&'static str, String>), ) -> Error
Add a simple context string and attributes pairs onto an error, converting it
to
loga::Error in the process.Source§impl<T> ErrContext for T
impl<T> ErrContext for T
Source§fn context(self, message: impl ToString) -> Error
fn context(self, message: impl ToString) -> Error
Add a simple context string onto an error, converting it to
loga::Error in
the process.Source§fn context_with(
self,
message: impl ToString,
attrs: impl Fn(&mut HashMap<&'static str, String>),
) -> Error
fn context_with( self, message: impl ToString, attrs: impl Fn(&mut HashMap<&'static str, String>), ) -> Error
Add a simple context string and attributes pairs onto an error, converting it
to
loga::Error in the process.Source§fn stack_context<F>(self, log: &Log<F>, message: impl ToString) -> Errorwhere
F: Flag,
fn stack_context<F>(self, log: &Log<F>, message: impl ToString) -> Errorwhere
F: Flag,
Add attributes from the log as well as a simple context string to an error,
converting it to
loga::Error in the process.Source§fn stack_context_with<F>(
self,
log: &Log<F>,
message: impl ToString,
attrs: impl Fn(&mut HashMap<&'static str, String>),
) -> Errorwhere
F: Flag,
fn stack_context_with<F>(
self,
log: &Log<F>,
message: impl ToString,
attrs: impl Fn(&mut HashMap<&'static str, String>),
) -> Errorwhere
F: Flag,
Add attributes from the log as well as the specified attributes and a simple
context string to an error, converting it to
loga::Error in the process.