pub struct NullObserver;Expand description
The default observer: a verified no-op that inlines to nothing.
Because Wal defaults its observer type parameter to NullObserver, the
don’t-ship case compiles away with no vtable call on the commit path
(static dispatch). Use a real observer only when a downstream consumer needs
the watermark.
Trait Implementations§
Source§impl Clone for NullObserver
impl Clone for NullObserver
Source§fn clone(&self) -> NullObserver
fn clone(&self) -> NullObserver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NullObserver
Source§impl Debug for NullObserver
impl Debug for NullObserver
Source§impl Default for NullObserver
impl Default for NullObserver
Source§fn default() -> NullObserver
fn default() -> NullObserver
Returns the “default value” for a type. Read more
Source§impl DurabilityObserver for NullObserver
impl DurabilityObserver for NullObserver
Source§fn on_durable(&mut self, _durable_lsn: Lsn)
fn on_durable(&mut self, _durable_lsn: Lsn)
durable_lsn is the new (monotonic) durable watermark.Auto Trait Implementations§
impl Freeze for NullObserver
impl RefUnwindSafe for NullObserver
impl Send for NullObserver
impl Sync for NullObserver
impl Unpin for NullObserver
impl UnsafeUnpin for NullObserver
impl UnwindSafe for NullObserver
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