[][src]Trait infrared::Command

pub trait Command {
    fn construct(addr: u32, data: u32) -> Option<Self>
    where
        Self: Sized
;
fn address(&self) -> u32;
fn data(&self) -> u32; fn protocol(&self) -> Protocol { ... } }

Remote control command trait

Required methods

fn construct(addr: u32, data: u32) -> Option<Self> where
    Self: Sized

Constuct a command

fn address(&self) -> u32

Command address

fn data(&self) -> u32

Get the data associated with the command

Loading content...

Provided methods

fn protocol(&self) -> Protocol

Protocol

Loading content...

Implementors

impl Command for NecCommand[src]

impl Command for Rc5Command[src]

impl Command for Rc6Cmd[src]

impl Command for SbpCommand[src]

Loading content...