Enum ProtocolModeConfig
pub enum ProtocolModeConfig {
DefaultBehavior,
ForceBoot,
ForceReport,
}
Expand description
It is often necessary to override OS behavior in order to get around OS (and application) level bugs. Forcing either Boot mode (6KRO) and Report mode (NKRO) are often necessary for NKRO compatible keyboards. Mice that support boot mode are not common and generally only useful for legacy OSs.
Variants§
DefaultBehavior
Allows the host to define boot or report mode. Defaults to report mode.
ForceBoot
Forces protocol mode to boot mode
ForceReport
Forces protocol mode to report mode
Trait Implementations§
§impl Clone for ProtocolModeConfig
impl Clone for ProtocolModeConfig
§fn clone(&self) -> ProtocolModeConfig
fn clone(&self) -> ProtocolModeConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ProtocolModeConfig
impl Debug for ProtocolModeConfig
§impl Format for ProtocolModeConfig
impl Format for ProtocolModeConfig
§impl PartialEq for ProtocolModeConfig
impl PartialEq for ProtocolModeConfig
impl Copy for ProtocolModeConfig
impl Eq for ProtocolModeConfig
impl StructuralPartialEq for ProtocolModeConfig
Auto Trait Implementations§
impl Freeze for ProtocolModeConfig
impl RefUnwindSafe for ProtocolModeConfig
impl Send for ProtocolModeConfig
impl Sync for ProtocolModeConfig
impl Unpin for ProtocolModeConfig
impl UnwindSafe for ProtocolModeConfig
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