Protocol

Trait Protocol 

Source
pub trait Protocol {
    // Required methods
    fn light(&self, option: &LightOption) -> Vec<u8> ;
    fn color(&self, option: &ColorOption) -> Vec<u8> ;
    fn brightness(&self, option: &BrightnessOption<'_>) -> Vec<u8> ;
    fn hw_animate(&self, option: &HWAnimateOption<'_>) -> Vec<u8> ;
    fn _animation_speed(setting: &HWAnimationSpeedSetting) -> u8;
    fn _static_color(color: &HWStaticColorOption) -> u8;
}

Required Methods§

Source

fn light(&self, option: &LightOption) -> Vec<u8>

Source

fn color(&self, option: &ColorOption) -> Vec<u8>

Source

fn brightness(&self, option: &BrightnessOption<'_>) -> Vec<u8>

Source

fn hw_animate(&self, option: &HWAnimateOption<'_>) -> Vec<u8>

Source

fn _animation_speed(setting: &HWAnimationSpeedSetting) -> u8

Source

fn _static_color(color: &HWStaticColorOption) -> u8

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§