Struct echonet_lite::ElPacketBuilder [−][src]
pub struct ElPacketBuilder { /* fields omitted */ }
Expand description
Builds a ECHONET Lite packet.
Examples
use echonet_lite as el; use el::prelude::*; let packet = el::ElPacketBuilder::new() .transaction_id(1) .seoj([0x05u8, 0xFFu8, 0x01u8]) .deoj([0x0Eu8, 0xF0u8, 0x01u8]) .esv(el::ServiceCode::Get) .props(el::props!([0x80, []])) .build();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ElPacketBuilder
impl Send for ElPacketBuilder
impl Sync for ElPacketBuilder
impl Unpin for ElPacketBuilder
impl UnwindSafe for ElPacketBuilder