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§