pub enum WroteCommit {
Yes,
No,
}Expand description
Whether super::WalRecorder::commit actually wrote a TxCommit to the
log. Read-only queries — those that never trigger
MutationRecorder::record — return WroteCommit::No so the host avoids
any WAL I/O just to record an empty transaction.
Variants§
Yes
A TxBegin and matching TxCommit were written through
Wal::commit_tx; the configured flush policy has already run.
No
No mutation events fired during the query, so neither TxBegin
nor TxCommit was appended. Caller can skip flush() entirely.
Implementations§
Trait Implementations§
Source§impl Clone for WroteCommit
impl Clone for WroteCommit
impl Copy for WroteCommit
Source§impl Debug for WroteCommit
impl Debug for WroteCommit
impl Eq for WroteCommit
Source§impl PartialEq for WroteCommit
impl PartialEq for WroteCommit
impl StructuralPartialEq for WroteCommit
Auto Trait Implementations§
impl Freeze for WroteCommit
impl RefUnwindSafe for WroteCommit
impl Send for WroteCommit
impl Sync for WroteCommit
impl Unpin for WroteCommit
impl UnsafeUnpin for WroteCommit
impl UnwindSafe for WroteCommit
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