Skip to main content

GDeviceModel

Trait GDeviceModel 

Source
pub trait GDeviceModel: Send + Sync {
    // Required methods
    fn get_sectors(&self) -> u8;
    fn get_default_color(&self) -> RgbColor;
    fn get_name(&self) -> &'static str;
    fn get_type(&self) -> DeviceType;
    fn usb_product_id(&self) -> u16;
}
Expand description

Logitech G device model series

Implementation is provided by a driver.

Required Methods§

Source

fn get_sectors(&self) -> u8

Source

fn get_default_color(&self) -> RgbColor

Source

fn get_name(&self) -> &'static str

Source

fn get_type(&self) -> DeviceType

Source

fn usb_product_id(&self) -> u16

Trait Implementations§

Source§

impl Hash for Box<dyn GDeviceModel>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Box<dyn GDeviceModel>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Box<dyn GDeviceModel>

Implementors§