pub struct ErrorContext {
pub component: &'static str,
pub operation: &'static str,
pub connection_id: Option<ConnectionId>,
pub additional_fields: Vec<(&'static str, &'static str)>,
}
Expand description
Error context for detailed logging
Fields§
§component: &'static str
Component name related to the error
operation: &'static str
Operation being performed when the error occurred
connection_id: Option<ConnectionId>
Optional connection identifier involved
additional_fields: Vec<(&'static str, &'static str)>
Additional static key/value fields for context
Trait Implementations§
Source§impl Debug for ErrorContext
impl Debug for ErrorContext
Source§impl Default for ErrorContext
impl Default for ErrorContext
Source§fn default() -> ErrorContext
fn default() -> ErrorContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnwindSafe for ErrorContext
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