pub struct Record<'a> { /* private fields */ }
Expand description
The payload of a log message.
Implementations§
Source§impl<'a> Record<'a>
impl<'a> Record<'a>
Sourcepub fn time(&self) -> SystemTime
pub fn time(&self) -> SystemTime
The observed time.
Sourcepub fn module_path(&self) -> Option<&'a str>
pub fn module_path(&self) -> Option<&'a str>
The module path of the message.
Sourcepub fn module_path_static(&self) -> Option<&'static str>
pub fn module_path_static(&self) -> Option<&'static str>
The module path of the message, if it is a 'static
str.
Sourcepub fn file_static(&self) -> Option<&'static str>
pub fn file_static(&self) -> Option<&'static str>
The source file containing the message, if it is a 'static
str.
Sourcepub fn payload_static(&self) -> Option<&'static str>
pub fn payload_static(&self) -> Option<&'static str>
The message body, if it is a 'static
str.
Sourcepub fn key_values(&self) -> &KeyValues<'a>
pub fn key_values(&self) -> &KeyValues<'a>
The key-values.
Sourcepub fn to_owned(&self) -> RecordOwned
pub fn to_owned(&self) -> RecordOwned
Convert to an owned record.
Sourcepub fn to_builder(&self) -> RecordBuilder<'a>
pub fn to_builder(&self) -> RecordBuilder<'a>
Create a builder initialized with the current record’s values.
Sourcepub fn builder() -> RecordBuilder<'a>
pub fn builder() -> RecordBuilder<'a>
Returns a new builder.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> !RefUnwindSafe for Record<'a>
impl<'a> !Send for Record<'a>
impl<'a> !Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> !UnwindSafe for Record<'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