pub struct TestRecord<'a> {
pub severity: RawSeverity,
pub timestamp: BootInstant,
pub file: Option<&'a str>,
pub line: Option<u32>,
pub record_arguments: Vec<Argument<'a>>,
}
Expand description
Arguments to create a record for testing purposes.
Fields§
§severity: RawSeverity
Severity of the log
timestamp: BootInstant
Timestamp of the test record.
file: Option<&'a str>
File that emitted the log.
line: Option<u32>
Line in the file that emitted the log.
record_arguments: Vec<Argument<'a>>
Additional record arguments.
Implementations§
Source§impl TestRecord<'_>
impl TestRecord<'_>
Trait Implementations§
Source§impl RecordEvent for TestRecord<'_>
impl RecordEvent for TestRecord<'_>
Source§fn raw_severity(&self) -> RawSeverity
fn raw_severity(&self) -> RawSeverity
Returns the record severity.
Source§fn line(&self) -> Option<u32>
fn line(&self) -> Option<u32>
Returns the number of the line in the file where the record was emitted.
Source§fn timestamp(&self) -> BootInstant
fn timestamp(&self) -> BootInstant
Returns the timestamp associated to this record.
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.
Auto Trait Implementations§
impl<'a> Freeze for TestRecord<'a>
impl<'a> RefUnwindSafe for TestRecord<'a>
impl<'a> Send for TestRecord<'a>
impl<'a> Sync for TestRecord<'a>
impl<'a> Unpin for TestRecord<'a>
impl<'a> UnwindSafe for TestRecord<'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