pub struct NullEventLog;Expand description
An event log that goes nowhere.
Not a default parameter and not a blanket impl: choosing to discard history is a decision a caller makes at the call site, and the type makes it visible there rather than burying it in a default.
Trait Implementations§
Source§impl Clone for NullEventLog
impl Clone for NullEventLog
impl Copy for NullEventLog
Source§impl Debug for NullEventLog
impl Debug for NullEventLog
Source§impl Default for NullEventLog
impl Default for NullEventLog
Source§impl EventLog for NullEventLog
impl EventLog for NullEventLog
Source§fn record(&self, _event: SessionEvent)
fn record(&self, _event: SessionEvent)
Appends one event.
Auto Trait Implementations§
impl Freeze for NullEventLog
impl RefUnwindSafe for NullEventLog
impl Send for NullEventLog
impl Sync for NullEventLog
impl Unpin for NullEventLog
impl UnsafeUnpin for NullEventLog
impl UnwindSafe for NullEventLog
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