#[repr(C)]pub struct OsFileIoApi {
pub open_input: Option<unsafe extern "C" fn(path: *const c_char) -> FileO>,
pub open_output: Option<unsafe extern "C" fn(path: *const c_char) -> FileO>,
pub open_append: Option<unsafe extern "C" fn(path: *const c_char) -> FileO>,
pub set_position: Option<unsafe extern "C" fn(file: FileO, pos: u64)>,
pub size: Option<unsafe extern "C" fn(file: FileO) -> u64>,
pub read: Option<unsafe extern "C" fn(file: FileO, buffer: *mut c_void, size: u64) -> i64>,
pub write: Option<unsafe extern "C" fn(file: FileO, buffer: *const c_void, size: u64) -> bool>,
pub read_at: Option<unsafe extern "C" fn(file: FileO, offset: u64, buffer: *mut c_void, size: u64) -> i64>,
pub write_at: Option<unsafe extern "C" fn(file: FileO, offset: u64, buffer: *const c_void, size: u64) -> bool>,
pub set_last_modified_time: Option<unsafe extern "C" fn(file: FileO, time: FileTimeO)>,
pub close: Option<unsafe extern "C" fn(file: FileO)>,
}
Fields§
§open_input: Option<unsafe extern "C" fn(path: *const c_char) -> FileO>
§open_output: Option<unsafe extern "C" fn(path: *const c_char) -> FileO>
§open_append: Option<unsafe extern "C" fn(path: *const c_char) -> FileO>
§set_position: Option<unsafe extern "C" fn(file: FileO, pos: u64)>
§size: Option<unsafe extern "C" fn(file: FileO) -> u64>
§read: Option<unsafe extern "C" fn(file: FileO, buffer: *mut c_void, size: u64) -> i64>
§write: Option<unsafe extern "C" fn(file: FileO, buffer: *const c_void, size: u64) -> bool>
§read_at: Option<unsafe extern "C" fn(file: FileO, offset: u64, buffer: *mut c_void, size: u64) -> i64>
§write_at: Option<unsafe extern "C" fn(file: FileO, offset: u64, buffer: *const c_void, size: u64) -> bool>
§set_last_modified_time: Option<unsafe extern "C" fn(file: FileO, time: FileTimeO)>
§close: Option<unsafe extern "C" fn(file: FileO)>
Implementations§
Source§impl OsFileIoApi
impl OsFileIoApi
pub unsafe fn open_input(&self, path: *const c_char) -> FileO
pub unsafe fn open_output(&self, path: *const c_char) -> FileO
pub unsafe fn open_append(&self, path: *const c_char) -> FileO
pub unsafe fn set_position(&self, file: FileO, pos: u64)
pub unsafe fn size(&self, file: FileO) -> u64
pub unsafe fn read(&self, file: FileO, buffer: *mut c_void, size: u64) -> i64
pub unsafe fn write( &self, file: FileO, buffer: *const c_void, size: u64, ) -> bool
pub unsafe fn read_at( &self, file: FileO, offset: u64, buffer: *mut c_void, size: u64, ) -> i64
pub unsafe fn write_at( &self, file: FileO, offset: u64, buffer: *const c_void, size: u64, ) -> bool
pub unsafe fn set_last_modified_time(&self, file: FileO, time: FileTimeO)
pub unsafe fn close(&self, file: FileO)
Trait Implementations§
Source§impl Clone for OsFileIoApi
impl Clone for OsFileIoApi
Source§fn clone(&self) -> OsFileIoApi
fn clone(&self) -> OsFileIoApi
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 Default for OsFileIoApi
impl Default for OsFileIoApi
Source§fn default() -> OsFileIoApi
fn default() -> OsFileIoApi
Returns the “default value” for a type. Read more
impl Copy for OsFileIoApi
Auto Trait Implementations§
impl Freeze for OsFileIoApi
impl RefUnwindSafe for OsFileIoApi
impl Send for OsFileIoApi
impl Sync for OsFileIoApi
impl Unpin for OsFileIoApi
impl UnwindSafe for OsFileIoApi
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