Struct libsql_ffi::libsql_wal_methods
source · #[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
impl Clone for libsql_wal_methods
source§fn clone(&self) -> libsql_wal_methods
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for libsql_wal_methods
impl Debug for libsql_wal_methods
impl Copy for libsql_wal_methods
Auto Trait Implementations§
impl RefUnwindSafe for libsql_wal_methods
impl Send for libsql_wal_methods
impl Sync for libsql_wal_methods
impl Unpin for libsql_wal_methods
impl UnwindSafe for libsql_wal_methods
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