Skip to main content

CreatableFeature

Trait CreatableFeature 

Source
pub trait CreatableFeature: Feature {
    const ID: u16;
    const STARTING_VERSION: u8;

    // Required method
    fn new(chan: Arc<HidppChannel>, device_index: u8, feature_index: u8) -> Self;
}
Expand description

Represents a Feature that can be instantiated automatically.

Required Associated Constants§

Source

const ID: u16

The protocol ID of the implemented feature.

Source

const STARTING_VERSION: u8

The version of the feature the implementation starts to support.

Required Methods§

Source

fn new(chan: Arc<HidppChannel>, device_index: u8, feature_index: u8) -> Self

Creates a new instance of the feature implementation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CreatableFeature for AdjustableDpiFeature

Source§

const ID: u16 = 0x2201

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for BacklightFeature

Source§

const ID: u16 = 0x1982

Source§

const STARTING_VERSION: u8 = 3

Source§

impl CreatableFeature for BrightnessControlFeature

Source§

const ID: u16 = 0x8040

Source§

const STARTING_VERSION: u8 = 1

Source§

impl CreatableFeature for ChangeHostFeature

Source§

const ID: u16 = 0x1814

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for ColorLedEffectsFeature

Source§

const ID: u16 = 0x8070

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for CrownFeature

Source§

const ID: u16 = 0x4600

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for DeviceFriendlyNameFeature

Source§

const ID: u16 = 0x0007

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for DeviceInformationFeature

Source§

const ID: u16 = 0x0003

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for DeviceTypeAndNameFeature

Source§

const ID: u16 = 0x0005

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for DisableKeysByUsageFeature

Source§

const ID: u16 = 0x4522

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for DisableKeysFeature

Source§

const ID: u16 = 0x4521

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for DualPlatformFeature

Source§

const ID: u16 = 0x4530

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for EqualizerFeature

Source§

const ID: u16 = 0x8310

Source§

const STARTING_VERSION: u8 = 2

Source§

impl CreatableFeature for ExtendedDpiFeature

Source§

const ID: u16 = 0x2202

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for ExtendedReportRateFeature

Source§

const ID: u16 = 0x8061

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for FeatureSetFeature

Source§

const ID: u16 = 0x0001

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for FnInversionMultiHostFeature

Source§

const ID: u16 = 0x40a3

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for FnInversionWithDefaultStateFeature

Source§

const ID: u16 = 0x40a2

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for HiResWheelFeature

Source§

const ID: u16 = 0x2121

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for HostsInfoFeature

Source§

const ID: u16 = 0x1815

Source§

const STARTING_VERSION: u8 = 2

Source§

impl CreatableFeature for IlluminationFeature

Source§

const ID: u16 = 0x1990

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for ModeStatusFeature

Source§

const ID: u16 = 0x8090

Source§

const STARTING_VERSION: u8 = 1

Source§

impl CreatableFeature for MousePointerFeature

Source§

const ID: u16 = 0x2200

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for MultiPlatformFeature

Source§

const ID: u16 = 0x4531

Source§

const STARTING_VERSION: u8 = 1

Source§

impl CreatableFeature for PerKeyLightingFeature

Source§

const ID: u16 = 0x8081

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for PersistentRemappableActionFeature

Source§

const ID: u16 = 0x1c00

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for ReportRateFeature

Source§

const ID: u16 = 0x8060

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for ReprogControlsFeature

Source§

const ID: u16 = 0x1b04

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for RgbEffectsFeature

Source§

const ID: u16 = 0x8071

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for RootFeature

Source§

const ID: u16 = 0x0000

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for SidetoneFeature

Source§

const ID: u16 = 0x8300

Source§

const STARTING_VERSION: u8 = 1

Source§

impl CreatableFeature for SmartShiftEnhancedFeature

Source§

const ID: u16 = 0x2111

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for SmartShiftFeature

Source§

const ID: u16 = 0x2110

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for SolarDashboardFeature

Source§

const ID: u16 = 0x4301

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for ThumbwheelFeature

Source§

const ID: u16 = 0x2150

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for TouchMouseRawFeature

Source§

const ID: u16 = 0x6110

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for TouchpadRawXyFeature

Source§

const ID: u16 = 0x6100

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for UnifiedBatteryFeature

Source§

const ID: u16 = 0x1004

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for VerticalScrollingFeature

Source§

const ID: u16 = 0x2100

Source§

const STARTING_VERSION: u8 = 0

Source§

impl CreatableFeature for WirelessDeviceStatusFeature

Source§

const ID: u16 = 0x1d4b

Source§

const STARTING_VERSION: u8 = 0