[][src]Struct tm_rs::ffi::tm_os_file_io_api

#[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_o

Trait Implementations

impl Clone for tm_os_file_io_api[src]

impl Copy for tm_os_file_io_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.