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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.