Struct coap::message::packet::Packet [] [src]

pub struct Packet {
    pub header: Header,
    pub payload: Vec<u8>,
    // some fields omitted
}

Fields

Methods

impl Packet
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Decodes a byte slice and construct the equivalent Packet.

[src]

Returns a vector of bytes representing the Packet.

Trait Implementations

impl Debug for Packet
[src]

[src]

Formats the value using the given formatter.