pub struct Record<'a> {
pub timestamp: BootInstant,
pub severity: RawSeverity,
pub arguments: Vec<Argument<'a>>,
}
Expand description
A log record.
Fields§
§timestamp: BootInstant
Time at which the log was emitted.
severity: RawSeverity
The severity of the log.
arguments: Vec<Argument<'a>>
Arguments associated with the log.
Implementations§
Trait Implementations§
Source§impl RecordFields for Record<'_>
impl RecordFields for Record<'_>
Source§fn raw_severity(&self) -> RawSeverity
fn raw_severity(&self) -> RawSeverity
Returns the record severity.
Source§fn write_arguments<B: MutableBuffer>(
self,
writer: &mut Encoder<B>,
) -> Result<(), EncodingError>
fn write_arguments<B: MutableBuffer>( self, writer: &mut Encoder<B>, ) -> Result<(), EncodingError>
Consumes this type and writes all the arguments.
Source§fn timestamp(&self) -> BootInstant
fn timestamp(&self) -> BootInstant
Returns the timestamp associated to this record.
impl<'a> StructuralPartialEq for Record<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)