Struct wasefire_applet_api::button::register::Params
source · #[repr(C)]pub struct Params {
pub button: usize,
pub handler_func: extern "C" fn(data: *mut u8, state: usize),
pub handler_data: *mut u8,
}Expand description
Parameters of register
Fields§
Index of the button to listen to.
handler_func: extern "C" fn(data: *mut u8, state: usize)Function called on button events.
The function takes its opaque data and the new button state as arguments.
handler_data: *mut u8The opaque data to use when calling the handler function.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Params
impl !Send for Params
impl !Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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