pub struct PetriLogFile(/* private fields */);Expand description
A log file for writing test output.
Generally, you should use [tracing] for test-generated logging. This type
is for writing fully-formed text entries that come from an external source,
such as another process or a guest serial port.
Implementations§
Source§impl PetriLogFile
impl PetriLogFile
Sourcepub fn write_entry_fmt(
&self,
timestamp: Option<Timestamp>,
level: Level,
args: Arguments<'_>,
)
pub fn write_entry_fmt( &self, timestamp: Option<Timestamp>, level: Level, args: Arguments<'_>, )
Write a log entry with the given format arguments.
Sourcepub fn write_entry(&self, message: impl Display)
pub fn write_entry(&self, message: impl Display)
Write a log entry with the given message.
Trait Implementations§
Source§impl Clone for PetriLogFile
impl Clone for PetriLogFile
Source§fn clone(&self) -> PetriLogFile
fn clone(&self) -> PetriLogFile
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 moreAuto Trait Implementations§
impl Freeze for PetriLogFile
impl RefUnwindSafe for PetriLogFile
impl Send for PetriLogFile
impl Sync for PetriLogFile
impl Unpin for PetriLogFile
impl UnwindSafe for PetriLogFile
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