pub trait KeyEvent: ChannelEvent {
// Required methods
fn key(&self) -> u8;
fn key_mut(&mut self) -> &mut u8;
}
Expand description
A trait that describes an event that is always connected to a key
pub trait KeyEvent: ChannelEvent {
// Required methods
fn key(&self) -> u8;
fn key_mut(&mut self) -> &mut u8;
}
A trait that describes an event that is always connected to a key