pub struct UnknownEvent {
pub event_type: String,
pub source: EventSource,
}
Expand description
An unknown event.
Fields§
§event_type: String
The event type.
source: EventSource
The client identifier. Also unique per gamepad.
Trait Implementations§
Source§impl Clone for UnknownEvent
impl Clone for UnknownEvent
Source§fn clone(&self) -> UnknownEvent
fn clone(&self) -> UnknownEvent
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 UnknownEvent
impl Debug for UnknownEvent
Source§impl<'de> Deserialize<'de> for UnknownEvent
impl<'de> Deserialize<'de> for UnknownEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UnknownEvent
impl PartialEq for UnknownEvent
Source§impl Serialize for UnknownEvent
impl Serialize for UnknownEvent
impl StructuralPartialEq for UnknownEvent
Auto Trait Implementations§
impl Freeze for UnknownEvent
impl RefUnwindSafe for UnknownEvent
impl Send for UnknownEvent
impl Sync for UnknownEvent
impl Unpin for UnknownEvent
impl UnwindSafe for UnknownEvent
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