Enum rubble::link::data::Pdu [−][src]
pub enum Pdu<'a, L> {
DataCont {
message: L,
},
DataStart {
message: L,
},
Control {
data: BytesOr<'a, ControlPdu<'a>>,
},
}
Expand description
Structured representation of a data channel PDU.
Variants
Continuation of an L2CAP message (or empty PDU).
Start of an L2CAP message (must not be empty).
LL Control PDU for controlling the Link-Layer connection.
Fields of Control
data: BytesOr<'a, ControlPdu<'a>>
Implementations
Trait Implementations
Performs the conversion.
Serializes the payload of the PDU to bytes.
The PDU header must be constructed using Link-Layer state (and Pdu::llid
).