#[repr(C)]pub struct tm_os_file_io_api {
pub open_input: Option<unsafe extern "C" fn(*const i8) -> tm_file_o>,
pub open_output: Option<unsafe extern "C" fn(*const i8, bool) -> tm_file_o>,
pub set_position: Option<unsafe extern "C" fn(tm_file_o, u64)>,
pub size: Option<unsafe extern "C" fn(tm_file_o) -> u64>,
pub read: Option<unsafe extern "C" fn(tm_file_o, *mut c_void, u64) -> i64>,
pub write: Option<unsafe extern "C" fn(tm_file_o, *const c_void, u64) -> bool>,
pub read_at: Option<unsafe extern "C" fn(tm_file_o, u64, *mut c_void, u64) -> i64>,
pub write_at: Option<unsafe extern "C" fn(tm_file_o, u64, *const c_void, u64) -> bool>,
pub close: Option<unsafe extern "C" fn(tm_file_o)>,
pub is_valid: Option<unsafe extern "C" fn(tm_file_o) -> bool>,
pub invalid_file: tm_file_o,
}Fields§
§open_input: Option<unsafe extern "C" fn(*const i8) -> tm_file_o>§open_output: Option<unsafe extern "C" fn(*const i8, bool) -> tm_file_o>§set_position: Option<unsafe extern "C" fn(tm_file_o, u64)>§size: Option<unsafe extern "C" fn(tm_file_o) -> u64>§read: Option<unsafe extern "C" fn(tm_file_o, *mut c_void, u64) -> i64>§write: Option<unsafe extern "C" fn(tm_file_o, *const c_void, u64) -> bool>§read_at: Option<unsafe extern "C" fn(tm_file_o, u64, *mut c_void, u64) -> i64>§write_at: Option<unsafe extern "C" fn(tm_file_o, u64, *const c_void, u64) -> bool>§close: Option<unsafe extern "C" fn(tm_file_o)>§is_valid: Option<unsafe extern "C" fn(tm_file_o) -> bool>§invalid_file: tm_file_oTrait Implementations§
Source§impl Clone for tm_os_file_io_api
impl Clone for tm_os_file_io_api
Source§fn clone(&self) -> tm_os_file_io_api
fn clone(&self) -> tm_os_file_io_api
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 moreimpl Copy for tm_os_file_io_api
Auto Trait Implementations§
impl Freeze for tm_os_file_io_api
impl RefUnwindSafe for tm_os_file_io_api
impl Send for tm_os_file_io_api
impl Sync for tm_os_file_io_api
impl Unpin for tm_os_file_io_api
impl UnwindSafe for tm_os_file_io_api
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