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 Forget for Checkpoint
impl Freeze for Checkpoint
impl Move for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpointwhere
RawVecInner: Send,
impl Sync for Checkpointwhere
RawVecInner: Sync,
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpointwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ValidationRecord>: UnsafeUnpin,
impl UnwindSafe for Checkpointwhere
RawVecInner: UnwindSafe,
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