pub struct LogContext<'a> {
pub session_id: Option<SessionId>,
pub thread_id: usize,
pub stack_trace: Option<&'a str>,
pub logger_name: &'a str,
}Expand description
The context associated with a log message received from the core as part of a LogListener.
Fields§
§session_id: Option<SessionId>The optional SessionId associated with the log message.
This will correspond with a BinaryView file’s SessionId.
thread_id: usizeThe thread ID associated with the log message.
stack_trace: Option<&'a str>The optional stack trace associated with the log message.
logger_name: &'a strThe target Logger for the log message.
Trait Implementations§
Source§impl<'a> Clone for LogContext<'a>
impl<'a> Clone for LogContext<'a>
Source§fn clone(&self) -> LogContext<'a>
fn clone(&self) -> LogContext<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LogContext<'a>
impl<'a> Debug for LogContext<'a>
Source§impl<'a> Hash for LogContext<'a>
impl<'a> Hash for LogContext<'a>
Source§impl<'a> Ord for LogContext<'a>
impl<'a> Ord for LogContext<'a>
Source§fn cmp(&self, other: &LogContext<'a>) -> Ordering
fn cmp(&self, other: &LogContext<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for LogContext<'a>
impl<'a> PartialEq for LogContext<'a>
Source§impl<'a> PartialOrd for LogContext<'a>
impl<'a> PartialOrd for LogContext<'a>
impl<'a> Eq for LogContext<'a>
impl<'a> StructuralPartialEq for LogContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogContext<'a>
impl<'a> RefUnwindSafe for LogContext<'a>
impl<'a> Send for LogContext<'a>
impl<'a> Sync for LogContext<'a>
impl<'a> Unpin for LogContext<'a>
impl<'a> UnwindSafe for LogContext<'a>
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