Enum usbd_hid::hid_class::ProtocolModeConfig
source · [−]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
sourceimpl Clone for ProtocolModeConfig
impl Clone for ProtocolModeConfig
sourcefn clone(&self) -> ProtocolModeConfig
fn clone(&self) -> ProtocolModeConfig
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProtocolModeConfig
impl Debug for ProtocolModeConfig
sourceimpl PartialEq<ProtocolModeConfig> for ProtocolModeConfig
impl PartialEq<ProtocolModeConfig> for ProtocolModeConfig
sourcefn eq(&self, other: &ProtocolModeConfig) -> bool
fn eq(&self, other: &ProtocolModeConfig) -> bool
impl Copy for ProtocolModeConfig
impl Eq for ProtocolModeConfig
impl StructuralEq for ProtocolModeConfig
impl StructuralPartialEq for ProtocolModeConfig
Auto Trait Implementations
impl RefUnwindSafe for ProtocolModeConfig
impl Send for ProtocolModeConfig
impl Sync for ProtocolModeConfig
impl Unpin for ProtocolModeConfig
impl UnwindSafe for ProtocolModeConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more