Struct show_image::event::DeviceButtonEvent
source · [−]pub struct DeviceButtonEvent {
pub device_id: DeviceId,
pub button: ButtonId,
pub state: ElementState,
}
Expand description
A button on a device was pressed or released.
Fields
device_id: DeviceId
The ID of the device.
The button that was pressed or released.
state: ElementState
The new state of the button (pressed or released).
Trait Implementations
sourceimpl Clone for DeviceButtonEvent
impl Clone for DeviceButtonEvent
sourcefn clone(&self) -> DeviceButtonEvent
fn clone(&self) -> DeviceButtonEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeviceButtonEvent
impl Debug for DeviceButtonEvent
sourceimpl From<DeviceButtonEvent> for DeviceEvent
impl From<DeviceButtonEvent> for DeviceEvent
sourcefn from(other: DeviceButtonEvent) -> Self
fn from(other: DeviceButtonEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DeviceButtonEvent
impl Send for DeviceButtonEvent
impl Sync for DeviceButtonEvent
impl Unpin for DeviceButtonEvent
impl UnwindSafe for DeviceButtonEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more