#[repr(C)]pub struct ArkUI_ContextCallback {
pub userData: *mut c_void,
pub callback: Option<unsafe extern "C" fn(userData: *mut c_void)>,
}Available on crate feature
api-12 only.Expand description
Defines the event callback type.
Available since API-level: 12
Fields§
§userData: *mut c_voidCustom type.
callback: Option<unsafe extern "C" fn(userData: *mut c_void)>Event callback.
Auto Trait Implementations§
impl Freeze for ArkUI_ContextCallback
impl RefUnwindSafe for ArkUI_ContextCallback
impl !Send for ArkUI_ContextCallback
impl !Sync for ArkUI_ContextCallback
impl Unpin for ArkUI_ContextCallback
impl UnwindSafe for ArkUI_ContextCallback
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