Enum relay8x::Relay8xCmdSet [−][src]
pub enum Relay8xCmdSet { Init, Set, Toggle, Reset, }
enum for all possbile commands
Variants
Init
Set
Toggle
Reset
Methods
impl Relay8xCmdSet
[src]
impl Relay8xCmdSet
pub fn encode(
self,
bytes: &mut BytesMut,
start_address: u8,
card: Option<u8>,
relays: Option<&RelayIndex>
) -> Result<()>
[src]
pub fn encode(
self,
bytes: &mut BytesMut,
start_address: u8,
card: Option<u8>,
relays: Option<&RelayIndex>
) -> Result<()>
based on command, address and card, returns the command frame for the relay card
Trait Implementations
impl Debug for Relay8xCmdSet
[src]
impl Debug for Relay8xCmdSet
Auto Trait Implementations
impl Send for Relay8xCmdSet
impl Send for Relay8xCmdSet
impl Sync for Relay8xCmdSet
impl Sync for Relay8xCmdSet