Struct machinery_api::foundation::OsFileIoApi [−][src]
#[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
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for OsFileIoApi
impl Send for OsFileIoApi
impl Sync for OsFileIoApi
impl Unpin for OsFileIoApi
impl UnwindSafe for OsFileIoApi
Blanket Implementations
Mutably borrows from an owned value. Read more