#[repr(C)]
pub struct libsql_wal_methods {
Show 26 fields pub iVersion: c_int, pub xLimit: Option<unsafe extern "C" fn(pWal: *mut wal_impl, limit: c_longlong)>, pub xBeginReadTransaction: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: *mut c_int) -> c_int>, pub xEndReadTransaction: Option<unsafe extern "C" fn(arg1: *mut wal_impl)>, pub xFindFrame: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: c_uint, arg2: *mut c_uint) -> c_int>, pub xReadFrame: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: c_uint, arg2: c_int, arg3: *mut c_uchar) -> c_int>, pub xDbsize: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_uint>, pub xBeginWriteTransaction: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>, pub xEndWriteTransaction: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>, pub xUndo: Option<unsafe extern "C" fn(pWal: *mut wal_impl, xUndo: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_uint) -> c_int>, pUndoCtx: *mut c_void) -> c_int>, pub xSavepoint: Option<unsafe extern "C" fn(pWal: *mut wal_impl, aWalData: *mut c_uint)>, pub xSavepointUndo: Option<unsafe extern "C" fn(pWal: *mut wal_impl, aWalData: *mut c_uint) -> c_int>, pub xFrames: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: c_int, arg2: *mut libsql_pghdr, arg3: c_uint, arg4: c_int, arg5: c_int, arg6: *mut c_int) -> c_int>, pub xCheckpoint: Option<unsafe extern "C" fn(pWal: *mut wal_impl, db: *mut sqlite3, eMode: c_int, xBusy: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>, pBusyArg: *mut c_void, sync_flags: c_int, nBuf: c_int, zBuf: *mut c_uchar, pnLog: *mut c_int, pnCkpt: *mut c_int, xCb: Option<unsafe extern "C" fn(pCbData: *mut c_void, mxSafeFrame: c_int, pPage: *const c_uchar, nPage: c_int, page_no: c_int, frame_no: c_int) -> c_int>, pCbData: *mut c_void) -> c_int>, pub xCallback: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>, pub xExclusiveMode: Option<unsafe extern "C" fn(pWal: *mut wal_impl, op: c_int) -> c_int>, pub xHeapMemory: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>, pub xSnapshotGet: Option<unsafe extern "C" fn(pWal: *mut wal_impl, ppSnapshot: *mut *mut sqlite3_snapshot) -> c_int>, pub xSnapshotOpen: Option<unsafe extern "C" fn(pWal: *mut wal_impl, pSnapshot: *mut sqlite3_snapshot)>, pub xSnapshotRecover: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>, pub xSnapshotCheck: Option<unsafe extern "C" fn(pWal: *mut c_void, pSnapshot: *mut sqlite3_snapshot) -> c_int>, pub xSnapshotUnlock: Option<unsafe extern "C" fn(pWal: *mut wal_impl)>, pub xFramesize: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>, pub xFile: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> *mut sqlite3_file>, pub xWriteLock: Option<unsafe extern "C" fn(pWal: *mut wal_impl, bLock: c_int) -> c_int>, pub xDb: Option<unsafe extern "C" fn(pWal: *mut wal_impl, db: *mut sqlite3)>,
}

Fields§

§iVersion: c_int§xLimit: Option<unsafe extern "C" fn(pWal: *mut wal_impl, limit: c_longlong)>§xBeginReadTransaction: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: *mut c_int) -> c_int>§xEndReadTransaction: Option<unsafe extern "C" fn(arg1: *mut wal_impl)>§xFindFrame: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: c_uint, arg2: *mut c_uint) -> c_int>§xReadFrame: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: c_uint, arg2: c_int, arg3: *mut c_uchar) -> c_int>§xDbsize: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_uint>§xBeginWriteTransaction: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>§xEndWriteTransaction: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>§xUndo: Option<unsafe extern "C" fn(pWal: *mut wal_impl, xUndo: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_uint) -> c_int>, pUndoCtx: *mut c_void) -> c_int>§xSavepoint: Option<unsafe extern "C" fn(pWal: *mut wal_impl, aWalData: *mut c_uint)>§xSavepointUndo: Option<unsafe extern "C" fn(pWal: *mut wal_impl, aWalData: *mut c_uint) -> c_int>§xFrames: Option<unsafe extern "C" fn(pWal: *mut wal_impl, arg1: c_int, arg2: *mut libsql_pghdr, arg3: c_uint, arg4: c_int, arg5: c_int, arg6: *mut c_int) -> c_int>§xCheckpoint: Option<unsafe extern "C" fn(pWal: *mut wal_impl, db: *mut sqlite3, eMode: c_int, xBusy: Option<unsafe extern "C" fn(arg1: *mut c_void) -> c_int>, pBusyArg: *mut c_void, sync_flags: c_int, nBuf: c_int, zBuf: *mut c_uchar, pnLog: *mut c_int, pnCkpt: *mut c_int, xCb: Option<unsafe extern "C" fn(pCbData: *mut c_void, mxSafeFrame: c_int, pPage: *const c_uchar, nPage: c_int, page_no: c_int, frame_no: c_int) -> c_int>, pCbData: *mut c_void) -> c_int>§xCallback: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>§xExclusiveMode: Option<unsafe extern "C" fn(pWal: *mut wal_impl, op: c_int) -> c_int>§xHeapMemory: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>§xSnapshotGet: Option<unsafe extern "C" fn(pWal: *mut wal_impl, ppSnapshot: *mut *mut sqlite3_snapshot) -> c_int>§xSnapshotOpen: Option<unsafe extern "C" fn(pWal: *mut wal_impl, pSnapshot: *mut sqlite3_snapshot)>§xSnapshotRecover: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>§xSnapshotCheck: Option<unsafe extern "C" fn(pWal: *mut c_void, pSnapshot: *mut sqlite3_snapshot) -> c_int>§xSnapshotUnlock: Option<unsafe extern "C" fn(pWal: *mut wal_impl)>§xFramesize: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> c_int>§xFile: Option<unsafe extern "C" fn(pWal: *mut wal_impl) -> *mut sqlite3_file>§xWriteLock: Option<unsafe extern "C" fn(pWal: *mut wal_impl, bLock: c_int) -> c_int>§xDb: Option<unsafe extern "C" fn(pWal: *mut wal_impl, db: *mut sqlite3)>

Trait Implementations§

source§

impl Clone for libsql_wal_methods

source§

fn clone(&self) -> libsql_wal_methods

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for libsql_wal_methods

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for libsql_wal_methods

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.