#[repr(C)]pub struct SQLiteVfsFile {
pub io_methods: sqlite3_file,
pub vfs: *mut sqlite3_vfs,
pub flags: i32,
pub name_ptr: *const u8,
pub name_length: usize,
}
Expand description
The actual pFile type in Vfs.
szOsFile
must be set to the size of SQLiteVfsFile
.
Fields§
§io_methods: sqlite3_file
The first field must be of type sqlite_file. In C layout, the pointer to SQLiteVfsFile is the pointer to io_methods.
vfs: *mut sqlite3_vfs
The vfs where the file is located, usually used to manage files.
flags: i32
Flags used to open the database.
name_ptr: *const u8
The pointer to the file name. If it is a leaked static pointer, you need to drop it manually when xClose it.
name_length: usize
Length of the file name, on wasm32 platform, usize is u32.
Implementations§
Source§impl SQLiteVfsFile
impl SQLiteVfsFile
Sourcepub unsafe fn from_file(file: *mut sqlite3_file) -> &'static SQLiteVfsFile
pub unsafe fn from_file(file: *mut sqlite3_file) -> &'static SQLiteVfsFile
Convert a sqlite3_file
pointer to a SQLiteVfsFile
pointer.
§Safety
You must ensure that the pointer passed in is SQLiteVfsFile
Auto Trait Implementations§
impl Freeze for SQLiteVfsFile
impl RefUnwindSafe for SQLiteVfsFile
impl !Send for SQLiteVfsFile
impl !Sync for SQLiteVfsFile
impl Unpin for SQLiteVfsFile
impl UnwindSafe for SQLiteVfsFile
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