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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.