Struct kernel::common::event::Event [] [src]

pub struct Event {
    pub code: char,
    pub a: isize,
    pub b: isize,
    pub c: isize,
}

An event

Fields

code
a
b
c

Methods

impl Event

fn new() -> Event

Create a null event

fn to_option(self) -> EventOption

Convert the event ot an optional event

fn trigger(&self)

Event trigger

Trait Implementations

Derived Implementations

impl Clone for Event

fn clone(&self) -> Event

fn clone_from(&mut self, source: &Self)

impl Copy for Event