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 = 8705u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for BacklightFeature

Source§

const ID: u16 = 6530u16

Source§

const STARTING_VERSION: u8 = 3u8

Source§

impl CreatableFeature for BatteryStatusFeature

Source§

const ID: u16 = 4096u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for BatteryVoltageFeature

Source§

const ID: u16 = 4097u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for BrightnessControlFeature

Source§

const ID: u16 = 32832u16

Source§

const STARTING_VERSION: u8 = 1u8

Source§

impl CreatableFeature for ChangeHostFeature

Source§

const ID: u16 = 6164u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for ColorLedEffectsFeature

Source§

const ID: u16 = 32880u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for CrownFeature

Source§

const ID: u16 = 17920u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for DeviceFriendlyNameFeature

Source§

const ID: u16 = 7u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for DeviceInformationFeature

Source§

const ID: u16 = 3u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for DeviceTypeAndNameFeature

Source§

const ID: u16 = 5u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for DisableKeysByUsageFeature

Source§

const ID: u16 = 17698u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for DisableKeysFeature

Source§

const ID: u16 = 17697u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for DualPlatformFeature

Source§

const ID: u16 = 17712u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for EqualizerFeature

Source§

const ID: u16 = 33552u16

Source§

const STARTING_VERSION: u8 = 2u8

Source§

impl CreatableFeature for ExtendedDpiFeature

Source§

const ID: u16 = 8706u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for ExtendedReportRateFeature

Source§

const ID: u16 = 32865u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for FeatureSetFeature

Source§

const ID: u16 = 1u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for FnInversionMultiHostFeature

Source§

const ID: u16 = 16547u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for FnInversionWithDefaultStateFeature

Source§

const ID: u16 = 16546u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for Gestures2Feature

Source§

const ID: u16 = 25857u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for HapticFeedbackFeature

Source§

const ID: u16 = 6576u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for HiResWheelFeature

Source§

const ID: u16 = 8481u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for HostsInfoFeature

Source§

const ID: u16 = 6165u16

Source§

const STARTING_VERSION: u8 = 2u8

Source§

impl CreatableFeature for IlluminationFeature

Source§

const ID: u16 = 6544u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for ModeStatusFeature

Source§

const ID: u16 = 32912u16

Source§

const STARTING_VERSION: u8 = 1u8

Source§

impl CreatableFeature for MousePointerFeature

Source§

const ID: u16 = 8704u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for MultiPlatformFeature

Source§

const ID: u16 = 17713u16

Source§

const STARTING_VERSION: u8 = 1u8

Source§

impl CreatableFeature for PerKeyLightingFeature

Source§

const ID: u16 = 32897u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for PersistentRemappableActionFeature

Source§

const ID: u16 = 7168u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for ReportRateFeature

Source§

const ID: u16 = 32864u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for ReprogControlsFeature

Source§

const ID: u16 = 6916u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for RgbEffectsFeature

Source§

const ID: u16 = 32881u16

Source§

const STARTING_VERSION: u8 = 0u8

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 = 33536u16

Source§

const STARTING_VERSION: u8 = 1u8

Source§

impl CreatableFeature for SmartShiftEnhancedFeature

Source§

const ID: u16 = 8465u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for SmartShiftFeature

Source§

const ID: u16 = 8464u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for SolarDashboardFeature

Source§

const ID: u16 = 17153u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for ThumbwheelFeature

Source§

const ID: u16 = 8528u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for TouchMouseRawFeature

Source§

const ID: u16 = 24848u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for TouchpadRawXyFeature

Source§

const ID: u16 = 24832u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for UnifiedBatteryFeature

Source§

const ID: u16 = 4100u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for VerticalScrollingFeature

Source§

const ID: u16 = 8448u16

Source§

const STARTING_VERSION: u8 = 0u8

Source§

impl CreatableFeature for WirelessDeviceStatusFeature

Source§

const ID: u16 = 0x1d4b

Source§

const STARTING_VERSION: u8 = 0