Struct DebugLogRecord
pub struct DebugLogRecord {
pub sequence: u64,
pub timestamp: Instant<BootTimeline>,
pub severity: DebugLogSeverity,
pub pid: Koid,
pub tid: Koid,
pub flags: u8,
/* private fields */
}
Expand description
A record from the kernel’s debuglog.
Fields§
§sequence: u64
§timestamp: Instant<BootTimeline>
§severity: DebugLogSeverity
§pid: Koid
§tid: Koid
§flags: u8
Implementations§
§impl DebugLogRecord
impl DebugLogRecord
pub fn from_raw(raw: &zx_log_record_t) -> Result<DebugLogRecord, Status>
pub fn from_raw(raw: &zx_log_record_t) -> Result<DebugLogRecord, Status>
Convert a raw debuglog record into this typed wrapper.
pub fn data(&self) -> &BStr
pub fn data(&self) -> &BStr
Returns the message data for the record.
Trait Implementations§
§impl Clone for DebugLogRecord
impl Clone for DebugLogRecord
§fn clone(&self) -> DebugLogRecord
fn clone(&self) -> DebugLogRecord
Returns a duplicate 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 more§impl Debug for DebugLogRecord
impl Debug for DebugLogRecord
§impl PartialEq for DebugLogRecord
impl PartialEq for DebugLogRecord
impl Copy for DebugLogRecord
impl Eq for DebugLogRecord
impl StructuralPartialEq for DebugLogRecord
Auto Trait Implementations§
impl Freeze for DebugLogRecord
impl RefUnwindSafe for DebugLogRecord
impl Send for DebugLogRecord
impl Sync for DebugLogRecord
impl Unpin for DebugLogRecord
impl UnwindSafe for DebugLogRecord
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