Trait KeyEvent

Source
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

Required Methods§

Source

fn key(&self) -> u8

Source

fn key_mut(&mut self) -> &mut u8

Implementors§