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