[][src]Trait infrared::remotecontrol::RemoteControl

pub trait RemoteControl<CMD> {
    type Button;
    fn decode(&self, raw: CMD) -> Option<Self::Button>;
fn encode(&self, button: Self::Button) -> CMD; }

A trait describing a Remote Control

Associated Types

type Button

The type of the buttons

Loading content...

Required methods

fn decode(&self, raw: CMD) -> Option<Self::Button>

Try to decode a command into an Button for this remote

fn encode(&self, button: Self::Button) -> CMD

Encode a button into a command

Loading content...

Implementors

Loading content...