pub struct EventManager { /* private fields */ }Implementations§
Source§impl EventManager
impl EventManager
pub fn new() -> Self
pub fn set_peripheral(&mut self, peripheral: Arc<Mutex<PlatformPeripheral>>)
pub async fn register_air_gesture_events(&self, listener: fn(Uuid, AirGestures))
pub async fn register_tap_events(&self, listener: fn(Uuid, u8))
pub async fn register_raw_data_events(&self, listener: fn(Uuid, Vec<u8>))
pub async fn register_mouse_events(&self, listener: fn(Uuid, i16, i16, bool))
pub async fn register_air_gesture_state_events(&self, listener: fn(Uuid, bool))
Trait Implementations§
Source§impl Clone for EventManager
impl Clone for EventManager
Source§fn clone(&self) -> EventManager
fn clone(&self) -> EventManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EventManager
impl !UnwindSafe for EventManager
impl Freeze for EventManager
impl Send for EventManager
impl Sync for EventManager
impl Unpin for EventManager
impl UnsafeUnpin for EventManager
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