pub struct NoWal;Expand description
A pager without a WAL may only publish pages whose LSN is zero.
Trait Implementations§
Source§impl WalBarrier for NoWal
impl WalBarrier for NoWal
fn flush_until(&self, _lsn: u64) -> Result<()>
Source§fn needs_page_image(&self, _page_id: u32) -> Result<bool>
fn needs_page_image(&self, _page_id: u32) -> Result<bool>
A checkpoint host can preserve the first image of an existing page
before the cache accepts an overwrite. Newly reserved pages need no undo.
Source§fn capture_page_image(&self, _page: &Page) -> Result<()>
fn capture_page_image(&self, _page: &Page) -> Result<()>
Must make the image durable before returning. The pager may evict the
replacement immediately; recording only at flush time is too late.
Source§fn reserve_pages(&self, _start: u32, _count: u32) -> Result<()>
fn reserve_pages(&self, _start: u32, _count: u32) -> Result<()>
Called before pages are removed from allocator ownership.
Source§fn detach_free_pages(&self, _pages: &[u32]) -> Result<()>
fn detach_free_pages(&self, _pages: &[u32]) -> Result<()>
Called before a persisted free-list trunk is detached from its head.
Source§fn has_page_ownership_journal(&self) -> Result<bool>
fn has_page_ownership_journal(&self) -> Result<bool>
True only while detached free IDs have durable recovery ownership.
No-op callbacks must not authorize moving a whole trunk into RAM.
Auto Trait Implementations§
impl Forget for NoWal
impl Freeze for NoWal
impl RefUnwindSafe for NoWal
impl Send for NoWal
impl Sync for NoWal
impl Unpin for NoWal
impl UnsafeUnpin for NoWal
impl UnwindSafe for NoWal
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more