pub struct Keyboard { /* private fields */ }Implementations§
Source§impl Keyboard
impl Keyboard
pub fn new() -> Self
pub fn set_enabled(&self, enabled: bool)
pub fn is_enabled(&self) -> bool
pub fn handle_scancode(&self, scancode: u8)
pub fn create_device() -> Device
Trait Implementations§
Source§impl CharDevice for Keyboard
impl CharDevice for Keyboard
fn read(&self, buf: &mut [u8]) -> Result<usize, DeviceError>
fn write(&self, _buf: &[u8]) -> Result<usize, DeviceError>
fn has_data(&self) -> bool
fn peek(&self, buf: &mut [u8]) -> Result<usize, DeviceError>
fn has_space(&self) -> bool
fn set_nonblocking(&self, nonblocking: bool) -> Result<(), DeviceError>
fn name(&self) -> &str
fn device_type(&self) -> DeviceType
fn open(&self) -> Result<(), DeviceError>
fn close(&self) -> Result<(), DeviceError>
fn ioctl(&self, _cmd: u64, _arg: u64) -> Result<u64, DeviceError>
fn sync(&self) -> Result<(), DeviceError>
fn is_compatible(&self, _scan_info: &ScanInfo) -> bool
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