pub struct DmesgEntry {
pub timestamp_ns: u64,
pub level: u8,
pub facility: u8,
pub message: String,
}Expand description
A single parsed dmesg log entry from the kernel ring buffer.
Fields§
§timestamp_ns: u64Timestamp in nanoseconds since boot.
level: u8Log level (0=EMERG, 1=ALERT, 2=CRIT, 3=ERR, 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG).
facility: u8Syslog facility code.
message: StringThe log message text.
Trait Implementations§
Source§impl Clone for DmesgEntry
impl Clone for DmesgEntry
Source§fn clone(&self) -> DmesgEntry
fn clone(&self) -> DmesgEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DmesgEntry
impl Debug for DmesgEntry
Auto Trait Implementations§
impl Freeze for DmesgEntry
impl RefUnwindSafe for DmesgEntry
impl Send for DmesgEntry
impl Sync for DmesgEntry
impl Unpin for DmesgEntry
impl UnsafeUnpin for DmesgEntry
impl UnwindSafe for DmesgEntry
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