Struct diagnostics_message::LoggerMessage
source · pub struct LoggerMessage {
pub timestamp: i64,
pub severity: Severity,
pub verbosity: Option<i8>,
pub pid: u64,
pub tid: u64,
pub size_bytes: usize,
pub dropped_logs: u64,
pub message: Box<str>,
pub tags: Vec<Box<str>>,
}
Fields§
§timestamp: i64
§severity: Severity
§verbosity: Option<i8>
§pid: u64
§tid: u64
§size_bytes: usize
§dropped_logs: u64
§message: Box<str>
Trait Implementations§
source§impl Clone for LoggerMessage
impl Clone for LoggerMessage
source§fn clone(&self) -> LoggerMessage
fn clone(&self) -> LoggerMessage
Returns a copy 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 Debug for LoggerMessage
impl Debug for LoggerMessage
source§impl PartialEq for LoggerMessage
impl PartialEq for LoggerMessage
source§fn eq(&self, other: &LoggerMessage) -> bool
fn eq(&self, other: &LoggerMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for LoggerMessage
impl TryFrom<&[u8]> for LoggerMessage
Parse the provided buffer as if it implements the logger/syslog wire format.
Note that this is distinct from the parsing we perform for the debuglog log, which also
takes a &[u8]
and is why we don’t implement this as TryFrom
.
impl Eq for LoggerMessage
impl StructuralPartialEq for LoggerMessage
Auto Trait Implementations§
impl Freeze for LoggerMessage
impl RefUnwindSafe for LoggerMessage
impl Send for LoggerMessage
impl Sync for LoggerMessage
impl Unpin for LoggerMessage
impl UnwindSafe for LoggerMessage
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