#[repr(C)]pub struct ov_callback_t {
pub callback_func: Option<unsafe extern "C" fn(args: *mut c_void)>,
pub args: *mut c_void,
}Expand description
@struct ov_callback_t @ingroup ov_infer_request_c_api @brief Completion callback definition about the function and args
Fields§
§callback_func: Option<unsafe extern "C" fn(args: *mut c_void)>!< The callback func
args: *mut c_void!< The args of callback func
Trait Implementations§
Source§impl Clone for ov_callback_t
impl Clone for ov_callback_t
Source§fn clone(&self) -> ov_callback_t
fn clone(&self) -> ov_callback_t
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 Debug for ov_callback_t
impl Debug for ov_callback_t
impl Copy for ov_callback_t
Auto Trait Implementations§
impl Freeze for ov_callback_t
impl RefUnwindSafe for ov_callback_t
impl !Send for ov_callback_t
impl !Sync for ov_callback_t
impl Unpin for ov_callback_t
impl UnwindSafe for ov_callback_t
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