#[repr(C)]pub struct CoreAssetI {
pub core_id: StrhashT,
pub path: *const c_char,
pub create_policy: CoreCreatePolicy,
pub _padding_59: [c_char; 4],
pub version: u64,
pub user_data: *const c_void,
pub create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, user_data: *const c_void) -> TtIdT>,
pub update: Option<unsafe extern "C" fn(tt: *mut TheTruthO, data_id: TtIdT, old_version: u64, user_data: *const c_void)>,
pub on_change: Option<unsafe extern "C" fn(tt: *mut TheTruthO, data_id: TtIdT, user_data: *const c_void)>,
}
Fields§
§core_id: StrhashT
§path: *const c_char
§create_policy: CoreCreatePolicy
§_padding_59: [c_char; 4]
§version: u64
§user_data: *const c_void
§create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, user_data: *const c_void) -> TtIdT>
§update: Option<unsafe extern "C" fn(tt: *mut TheTruthO, data_id: TtIdT, old_version: u64, user_data: *const c_void)>
§on_change: Option<unsafe extern "C" fn(tt: *mut TheTruthO, data_id: TtIdT, user_data: *const c_void)>
Trait Implementations§
Source§impl Clone for CoreAssetI
impl Clone for CoreAssetI
Source§fn clone(&self) -> CoreAssetI
fn clone(&self) -> CoreAssetI
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 CoreAssetI
impl Default for CoreAssetI
impl Copy for CoreAssetI
Auto Trait Implementations§
impl Freeze for CoreAssetI
impl RefUnwindSafe for CoreAssetI
impl !Send for CoreAssetI
impl !Sync for CoreAssetI
impl Unpin for CoreAssetI
impl UnwindSafe for CoreAssetI
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