Enum ps2::DeviceToHostResponse
source · #[repr(u8)]pub enum DeviceToHostResponse {
KeyDetectionErrorOrInternalBufferOverrun1 = 0,
SelfTestPassed = 170,
ResponseToEcho = 238,
Acknowledge = 250,
SelfTestFailed1 = 252,
SelfTestFailed2 = 253,
ResendCommand = 254,
KeyDetectionErrorOrInternalBufferOverrun2 = 255,
}
Variants§
KeyDetectionErrorOrInternalBufferOverrun1 = 0
SelfTestPassed = 170
sent after “0xFF (reset)” command or keyboard power up
ResponseToEcho = 238
Acknowledge = 250
SelfTestFailed1 = 252
sent after “0xFF (reset)” command or keyboard power up
SelfTestFailed2 = 253
sent after “0xFF (reset)” command or keyboard power up
ResendCommand = 254
KeyDetectionErrorOrInternalBufferOverrun2 = 255
Trait Implementations§
source§impl Debug for DeviceToHostResponse
impl Debug for DeviceToHostResponse
source§impl TryFrom<u8> for DeviceToHostResponse
impl TryFrom<u8> for DeviceToHostResponse
Auto Trait Implementations§
impl RefUnwindSafe for DeviceToHostResponse
impl Send for DeviceToHostResponse
impl Sync for DeviceToHostResponse
impl Unpin for DeviceToHostResponse
impl UnwindSafe for DeviceToHostResponse
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