pub struct LoggerMessage {
pub timestamp: BootInstant,
pub raw_severity: u8,
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: BootInstant
§raw_severity: u8
§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§impl TryFrom<&[u8]> for LoggerMessage
Parse the provided buffer as if it implements the logger/syslog wire format.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more