[][src]Trait vcontrol::device::Device

pub trait Device {
    type Protocol: Protocol;
    fn map() -> &'static Map<&'static str, Command>;

    fn commands() -> Vec<&'static str> { ... }
fn command(name: &str) -> Option<&Command> { ... }
fn get(o: &mut Optolink, cmd: &Command) -> Result<Value, Error> { ... }
fn set(o: &mut Optolink, cmd: &Command, input: &Value) -> Result<(), Error> { ... } }

Associated Types

Loading content...

Required methods

fn map() -> &'static Map<&'static str, Command>

Loading content...

Provided methods

fn commands() -> Vec<&'static str>

fn command(name: &str) -> Option<&Command>

fn get(o: &mut Optolink, cmd: &Command) -> Result<Value, Error>

fn set(o: &mut Optolink, cmd: &Command, input: &Value) -> Result<(), Error>

Loading content...

Implementors

impl Device for V200KW2_6[src]

type Protocol = Kw2

Loading content...