Struct slog_glog_fmt::kv_categorizer::ErrorCategorizer
source · pub struct ErrorCategorizer;
Expand description
Used to properly print error_chain
Error
s. It displays the error and it’s causes in
separate log lines as well as backtrace if provided.
The error_chain
Error
must implement KV
trait. It is recommended to use impl_kv_error
macro to generate the implementation.
Trait Implementations§
source§impl KVCategorizer for ErrorCategorizer
impl KVCategorizer for ErrorCategorizer
source§fn categorize(&self, key: Key) -> KVCategory
fn categorize(&self, key: Key) -> KVCategory
For a given key from KV decide which category it belongs to
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCategorizer
impl Send for ErrorCategorizer
impl Sync for ErrorCategorizer
impl Unpin for ErrorCategorizer
impl UnwindSafe for ErrorCategorizer
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