pub struct WalDurabilityTicket { /* private fields */ }Expand description
A claim on WAL durability handed out by a deferred Full-mode flush: the
commit’s records have reached the OS file but are not yet guaranteed on
stable storage. Self::wait blocks until an fsync covering them has
completed — the caller must not acknowledge the commit before wait
returns Ok(()).
Tickets are cumulative: generations are registered in order, so waiting on
a later ticket also makes every earlier generation durable. Waiting takes
no Wal lock, which is what lets a committer release the engine’s write
lock first and other committers append while the fsync runs — the overlap
that lets one fsync cover many commits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WalDurabilityTicket
impl RefUnwindSafe for WalDurabilityTicket
impl Send for WalDurabilityTicket
impl Sync for WalDurabilityTicket
impl Unpin for WalDurabilityTicket
impl UnsafeUnpin for WalDurabilityTicket
impl UnwindSafe for WalDurabilityTicket
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