pub struct Checkpoint { /* private fields */ }Expand description
Records logged between Checkpoint::begin and Checkpoint::finish, plus earlier
unclaimed records labelled with this checkpoint’s name.
Implementations§
Source§impl Checkpoint
impl Checkpoint
Sourcepub fn begin(name: &str) -> Self
pub fn begin(name: &str) -> Self
Begins a checkpoint called name, installing the collector unless the mode is
ValidationMode::Off.
§Panics
When another logger was installed first (InstallError::AlreadySet).
Sourcepub fn finish(self) -> Vec<ValidationRecord>
pub fn finish(self) -> Vec<ValidationRecord>
Ends the checkpoint and returns its records, oldest first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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