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
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)