Struct stdio::KeyEventQueue
source · pub struct KeyEventQueue { /* private fields */ }
Implementations§
source§impl KeyEventQueue
impl KeyEventQueue
sourcepub fn new() -> KeyEventQueue
pub fn new() -> KeyEventQueue
Create a new ring buffer storing KeyEvent
.
sourcepub fn get_reader(&self) -> KeyEventQueueReader
pub fn get_reader(&self) -> KeyEventQueueReader
Get a reader to the ring buffer.
sourcepub fn get_writer(&self) -> KeyEventQueueWriter
pub fn get_writer(&self) -> KeyEventQueueWriter
Get a writer to the ring buffer.
Auto Trait Implementations§
impl !RefUnwindSafe for KeyEventQueue
impl Send for KeyEventQueue
impl Sync for KeyEventQueue
impl Unpin for KeyEventQueue
impl !UnwindSafe for KeyEventQueue
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