pub struct WalWrapper<T, W> { /* private fields */ }
Expand description
A convenient wrapper struct that implement WAL with a wrapper
where the wrapper needs to
implement WrapWal
instead of Wal
, where all methods delegate to wrapped by default.
Implementations§
Trait Implementations§
Source§impl<T: Clone, W: Clone> Clone for WalWrapper<T, W>
impl<T: Clone, W: Clone> Clone for WalWrapper<T, W>
Source§fn clone(&self) -> WalWrapper<T, W>
fn clone(&self) -> WalWrapper<T, W>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T, U> WalManager for WalWrapper<T, U>
impl<T, U> WalManager for WalWrapper<T, U>
type Wal = WrappedWal<T, <U as WalManager>::Wal>
fn open( &self, vfs: &mut Vfs, file: &mut Sqlite3File, no_shm_mode: c_int, max_log_size: i64, db_path: &CStr, ) -> Result<Self::Wal>
fn close( &self, wal: &mut Self::Wal, db: &mut Sqlite3Db, sync_flags: c_int, scratch: Option<&mut [u8]>, ) -> Result<()>
fn destroy_log(&self, vfs: &mut Vfs, db_path: &CStr) -> Result<()>
fn log_exists(&self, vfs: &mut Vfs, db_path: &CStr) -> Result<bool>
fn destroy(self)where
Self: Sized,
fn wrap<U>(self, wrapper: U) -> WalWrapper<U, Self>
Auto Trait Implementations§
impl<T, W> Freeze for WalWrapper<T, W>
impl<T, W> RefUnwindSafe for WalWrapper<T, W>where
T: RefUnwindSafe,
W: RefUnwindSafe,
impl<T, W> Send for WalWrapper<T, W>
impl<T, W> Sync for WalWrapper<T, W>
impl<T, W> Unpin for WalWrapper<T, W>
impl<T, W> UnwindSafe for WalWrapper<T, W>where
T: UnwindSafe,
W: UnwindSafe,
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