pub struct EventCallback { /* private fields */ }Implementations§
Source§impl EventCallback
impl EventCallback
pub fn new( cb: impl Fn(&str, &str) + Send + Sync + 'static, ) -> (MaaEventCallback, *mut c_void)
pub unsafe fn drop_callback(ptr: *mut c_void)
pub fn new_sink( handle: MaaId, sink: Box<dyn EventSink>, ) -> (MaaEventCallback, *mut c_void)
pub unsafe fn drop_sink(ptr: *mut c_void)
Auto Trait Implementations§
impl Freeze for EventCallback
impl RefUnwindSafe for EventCallback
impl !Send for EventCallback
impl !Sync for EventCallback
impl Unpin for EventCallback
impl UnsafeUnpin for EventCallback
impl UnwindSafe for EventCallback
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