Struct defmt_decoder::log::DefmtRecord
source · [−]pub struct DefmtRecord<'a> { /* private fields */ }Available on
unstable only.Expand description
A log record representing a defmt log frame.
Implementations
sourceimpl<'a> DefmtRecord<'a>
impl<'a> DefmtRecord<'a>
sourcepub fn new(log_record: &'a Record<'a>) -> Option<Self>
pub fn new(log_record: &'a Record<'a>) -> Option<Self>
If record was produced by log_defmt, returns the corresponding DefmtRecord.
pub fn level(&self) -> Option<Level>
pub fn args(&self) -> &Arguments<'a>
pub fn module_path(&self) -> Option<&'a str>
pub fn file(&self) -> Option<&'a str>
pub fn line(&self) -> Option<u32>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DefmtRecord<'a>
impl<'a> !Send for DefmtRecord<'a>
impl<'a> !Sync for DefmtRecord<'a>
impl<'a> Unpin for DefmtRecord<'a>
impl<'a> !UnwindSafe for DefmtRecord<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more