Struct gilrs::ev::Event [−][src]
pub struct Event {
pub id: GamepadId,
pub event: EventType,
pub time: SystemTime,
}
Expand description
Holds information about gamepad event.
Fields
id: GamepadId
Id of gamepad.
event: EventType
Event’s data.
time: SystemTime
Time when event was emitted.
Implementations
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more