Trait ddc::commands::Command [] [src]

pub trait Command {
    type Ok: CommandResult;

    const MIN_LEN: usize;
    const MAX_LEN: usize;
    const DELAY_RESPONSE_MS: u64;
    const DELAY_COMMAND_MS: u64;

    fn len(&self) -> usize;
fn encode(&self, data: &mut [u8]) -> Result<usize, ErrorCode>; }

Associated Types

Associated Constants

Required Methods

Implementations on Foreign Types

impl<'a, C: Command> Command for &'a C
[src]

[src]

[src]

Implementors