pub struct KeyboardInput { /* private fields */ }Expand description
Terminal keyboard input reader using crossterm raw mode.
Implementations§
Source§impl KeyboardInput
impl KeyboardInput
pub fn new( toggle_key: char, sender: UnboundedSender<InputEvent>, cancel: CancellationToken, ) -> Self
Auto Trait Implementations§
impl Freeze for KeyboardInput
impl RefUnwindSafe for KeyboardInput
impl Send for KeyboardInput
impl Sync for KeyboardInput
impl Unpin for KeyboardInput
impl UnsafeUnpin for KeyboardInput
impl UnwindSafe for KeyboardInput
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