Trait infrared::remotecontrol::RemoteControlModel
source · pub trait RemoteControlModel: Default {
type Cmd: AddressCommand;
const PROTOCOL: ProtocolId;
const ADDRESS: u32;
const MODEL: &'static str = "<NONAME>";
const DEVTYPE: DeviceType = DeviceType::Generic;
const BUTTONS: &'static [(u32, Action)] = _;
fn decode(cmd: &Self::Cmd) -> Option<Action> { ... }
fn encode(button: &Action) -> Option<Self::Cmd> { ... }
}
Expand description
A trait describing a Remote Control
Required Associated Types§
sourcetype Cmd: AddressCommand
type Cmd: AddressCommand
The type of command
Required Associated Constants§
Provided Associated Constants§
sourceconst DEVTYPE: DeviceType = DeviceType::Generic
const DEVTYPE: DeviceType = DeviceType::Generic
Type of device that this remote controls