pub struct KeyBoard { /* private fields */ }Implementations§
Source§impl KeyBoard
impl KeyBoard
pub fn new(file: Box<dyn ReadAndAsRawFd>) -> Self
pub fn new_with_tty() -> Self
pub fn raw_mouse(self, raw_mouse: bool) -> Self
pub fn get_interrupt_handler(&self) -> KeyboardHandler
pub fn next_key(&mut self) -> Result<Key>
pub fn next_key_timeout(&mut self, timeout: Duration) -> Result<Key>
Auto Trait Implementations§
impl !Freeze for KeyBoard
impl !RefUnwindSafe for KeyBoard
impl Send for KeyBoard
impl !Sync for KeyBoard
impl Unpin for KeyBoard
impl !UnwindSafe for KeyBoard
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