#[repr(C)]pub struct RuntimeDataRepositoryApi {
pub create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, tt: *mut TheTruthO, type_: TtTypeT, runtime_data_size: u32, io_interface: *mut RuntimeDataIoI) -> *mut RuntimeDataRepositoryO>,
pub destroy: Option<unsafe extern "C" fn(inst: *mut RuntimeDataRepositoryO, io_context: *mut c_void)>,
pub lookup: Option<unsafe extern "C" fn(inst: *mut RuntimeDataRepositoryO, id: TtIdT, wanted_version: u64, io_context: *mut c_void) -> RuntimeDataT>,
pub garbage_collect: Option<unsafe extern "C" fn(inst: *mut RuntimeDataRepositoryO, io_context: *mut c_void)>,
}
Fields§
§create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, tt: *mut TheTruthO, type_: TtTypeT, runtime_data_size: u32, io_interface: *mut RuntimeDataIoI) -> *mut RuntimeDataRepositoryO>
§destroy: Option<unsafe extern "C" fn(inst: *mut RuntimeDataRepositoryO, io_context: *mut c_void)>
§lookup: Option<unsafe extern "C" fn(inst: *mut RuntimeDataRepositoryO, id: TtIdT, wanted_version: u64, io_context: *mut c_void) -> RuntimeDataT>
§garbage_collect: Option<unsafe extern "C" fn(inst: *mut RuntimeDataRepositoryO, io_context: *mut c_void)>
Implementations§
Source§impl RuntimeDataRepositoryApi
impl RuntimeDataRepositoryApi
pub unsafe fn create( &self, allocator: *mut AllocatorI, tt: *mut TheTruthO, type_: TtTypeT, runtime_data_size: u32, io_interface: *mut RuntimeDataIoI, ) -> *mut RuntimeDataRepositoryO
pub unsafe fn destroy( &self, inst: *mut RuntimeDataRepositoryO, io_context: *mut c_void, )
pub unsafe fn lookup( &self, inst: *mut RuntimeDataRepositoryO, id: TtIdT, wanted_version: u64, io_context: *mut c_void, ) -> RuntimeDataT
pub unsafe fn garbage_collect( &self, inst: *mut RuntimeDataRepositoryO, io_context: *mut c_void, )
Trait Implementations§
Source§impl Api for RuntimeDataRepositoryApi
impl Api for RuntimeDataRepositoryApi
Source§impl Clone for RuntimeDataRepositoryApi
impl Clone for RuntimeDataRepositoryApi
Source§fn clone(&self) -> RuntimeDataRepositoryApi
fn clone(&self) -> RuntimeDataRepositoryApi
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 moreSource§impl Default for RuntimeDataRepositoryApi
impl Default for RuntimeDataRepositoryApi
Source§fn default() -> RuntimeDataRepositoryApi
fn default() -> RuntimeDataRepositoryApi
Returns the “default value” for a type. Read more
impl Copy for RuntimeDataRepositoryApi
Auto Trait Implementations§
impl Freeze for RuntimeDataRepositoryApi
impl RefUnwindSafe for RuntimeDataRepositoryApi
impl Send for RuntimeDataRepositoryApi
impl Sync for RuntimeDataRepositoryApi
impl Unpin for RuntimeDataRepositoryApi
impl UnwindSafe for RuntimeDataRepositoryApi
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