pub struct KmsgParsedEntry<'a> {
pub facility: u8,
pub level: u8,
pub seq: u64,
pub time: Duration,
pub message: EncodedMessage<'a>,
}
Expand description
A parsed kmsg entry.
Fields§
§facility: u8
The facility.
level: u8
The message level.
seq: u64
The sequence number.
time: Duration
The time of the message since boot.
message: EncodedMessage<'a>
The encoded message.
Implementations§
Source§impl<'a> KmsgParsedEntry<'a>
impl<'a> KmsgParsedEntry<'a>
pub fn new(data: &'a [u8]) -> Result<Self, InvalidKmsgEntry>
Sourcepub fn display(&self, ansi: bool) -> KmsgEntryDisplay<'_>
pub fn display(&self, ansi: bool) -> KmsgEntryDisplay<'_>
Returns a Display
implementation that includes colors if ansi
.
Auto Trait Implementations§
impl<'a> Freeze for KmsgParsedEntry<'a>
impl<'a> RefUnwindSafe for KmsgParsedEntry<'a>
impl<'a> Send for KmsgParsedEntry<'a>
impl<'a> Sync for KmsgParsedEntry<'a>
impl<'a> Unpin for KmsgParsedEntry<'a>
impl<'a> UnwindSafe for KmsgParsedEntry<'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