CommandToParams

Trait CommandToParams 

Source
pub trait CommandToParams {
    // Required method
    fn to_params(&self) -> (Vec<u32>, Option<&[u8]>);
}
Expand description

Trait for converting commands to parameters and data phase.

Required Methods§

Source

fn to_params(&self) -> (Vec<u32>, Option<&[u8]>)

Convert command to parameters and optional data phase.

The first item in tuple are command parameters, the second are bytes to be sent in data phase.

Implementors§