Struct rubble::l2cap::Header[][src]

struct Header {
    length: u16,
    channel: Channel,
}
Expand description

Header used by all L2CAP PDUs.

Fields

length: u16

Length of the payload following the length and channel fields (after reassembly).

channel: Channel

Destination endpoint of the PDU.

Implementations

The size of an L2CAP message header in Bytes.

Trait Implementations

Formats the value using the given formatter. Read more

Decode a Self from a byte slice, advancing bytes to point past the data that was read. Read more

Converts self to bytes and writes them into writer, advancing writer to point past the encoded value. 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.

Should always be Self

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.