Trait Device
vcontrol::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> { ... } }
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>
impl Device for V200KW2_6
type Protocol = Kw2