Skip to main content

Command

Trait Command 

Source
pub trait Command {
    const START_BYTE: u8;

    // Provided method
    fn start_byte(&self) -> u8 { ... }
}
Expand description

Types that may be submitted as commands to the DAC.

Required Associated Constants§

Source

const START_BYTE: u8

The starting byte of the command.

Provided Methods§

Source

fn start_byte(&self) -> u8

A provided method for producing the start byte. Useful for trait objects.

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.

Implementations on Foreign Types§

Source§

impl<'a, C> Command for &'a C
where C: Command,

Source§

const START_BYTE: u8 = C::START_BYTE

Implementors§