Struct machinery_api::foundation::ApiRegistryApi[][src]

#[repr(C)]
pub struct ApiRegistryApi { pub set: Option<unsafe extern "C" fn(name: *const c_char, api: *const c_void, bytes: u32)>, pub remove: Option<unsafe extern "C" fn(api: *const 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: *const c_void)>, pub remove_implementation: Option<unsafe extern "C" fn(name: *const c_char, implementation: *const 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 ApiRegistryListenerI)>, pub static_variable: Option<unsafe extern "C" fn(id: StrhashT, 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: *const c_void, bytes: u32)>remove: Option<unsafe extern "C" fn(api: *const 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: *const c_void)>remove_implementation: Option<unsafe extern "C" fn(name: *const c_char, implementation: *const 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 ApiRegistryListenerI)>static_variable: Option<unsafe extern "C" fn(id: StrhashT, size: u32, file: *const c_char, line: u32) -> *mut c_void>log_missing_apis: Option<unsafe extern "C" fn()>

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.