[][src]Struct tm_sys::ffi::tm_api_registry_api

#[repr(C)]pub struct tm_api_registry_api {
    pub set: Option<unsafe extern "C" fn(name: *const c_char, api: *mut c_void, bytes: u32)>,
    pub remove: Option<unsafe extern "C" fn(api: *mut c_void)>,
    pub get: Option<unsafe extern "C" fn(name: *const c_char) -> *mut c_void>,
    pub get_optional: Option<unsafe extern "C" fn(name: *const c_char) -> *mut c_void>,
    pub add_implementation: Option<unsafe extern "C" fn(name: *const c_char, implementation: *mut c_void)>,
    pub remove_implementation: Option<unsafe extern "C" fn(name: *const c_char, implementation: *mut c_void)>,
    pub implementations: Option<unsafe extern "C" fn(name: *const c_char, count: *mut u32) -> *mut *mut c_void>,
    pub add_listener: Option<unsafe extern "C" fn(listener: *const tm_api_registry_listener_i)>,
    pub static_variable: Option<unsafe extern "C" fn(id: u64, size: u32, file: *const c_char, line: u32) -> *mut c_void>,
    pub log_missing_apis: Option<unsafe extern "C" fn()>,
}

Fields

set: Option<unsafe extern "C" fn(name: *const c_char, api: *mut c_void, bytes: u32)>remove: Option<unsafe extern "C" fn(api: *mut c_void)>get: Option<unsafe extern "C" fn(name: *const c_char) -> *mut c_void>get_optional: Option<unsafe extern "C" fn(name: *const c_char) -> *mut c_void>add_implementation: Option<unsafe extern "C" fn(name: *const c_char, implementation: *mut c_void)>remove_implementation: Option<unsafe extern "C" fn(name: *const c_char, implementation: *mut c_void)>implementations: Option<unsafe extern "C" fn(name: *const c_char, count: *mut u32) -> *mut *mut c_void>add_listener: Option<unsafe extern "C" fn(listener: *const tm_api_registry_listener_i)>static_variable: Option<unsafe extern "C" fn(id: u64, size: u32, file: *const c_char, line: u32) -> *mut c_void>log_missing_apis: Option<unsafe extern "C" fn()>

Trait Implementations

impl Clone for tm_api_registry_api[src]

impl Copy for tm_api_registry_api[src]

impl Debug for tm_api_registry_api[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.