Struct moa_host::controllers::ControllerEvent
source · pub struct ControllerEvent {
pub device: ControllerDevice,
pub input: ControllerInput,
}
Fields§
§device: ControllerDevice
§input: ControllerInput
Implementations§
source§impl ControllerEvent
impl ControllerEvent
pub fn new(device: ControllerDevice, input: ControllerInput) -> Self
Trait Implementations§
source§impl Clone for ControllerEvent
impl Clone for ControllerEvent
source§fn clone(&self) -> ControllerEvent
fn clone(&self) -> ControllerEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ControllerEvent
impl Debug for ControllerEvent
source§impl PartialEq for ControllerEvent
impl PartialEq for ControllerEvent
source§fn eq(&self, other: &ControllerEvent) -> bool
fn eq(&self, other: &ControllerEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ControllerEvent
impl Eq for ControllerEvent
impl StructuralPartialEq for ControllerEvent
Auto Trait Implementations§
impl Freeze for ControllerEvent
impl RefUnwindSafe for ControllerEvent
impl Send for ControllerEvent
impl Sync for ControllerEvent
impl Unpin for ControllerEvent
impl UnwindSafe for ControllerEvent
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