Struct rubble::l2cap::L2CAPStateTx [−][src]
pub struct L2CAPStateTx<'a, M: ChannelMapper, P: Producer> {
l2cap: &'a mut L2CAPState<M>,
tx: &'a mut P,
}
Expand description
An L2CAPState
with the ability to transmit packets.
Derefs to the underlying L2CAPState
.
Fields
l2cap: &'a mut L2CAPState<M>
tx: &'a mut P
Implementations
Process the start of a new L2CAP message (or a complete, unfragmented message).
If the incoming message is unfragmented, it will be forwarded to the protocol listening on the addressed channel, and a response may be sent.
Process continuation of an L2CAP message.
This is not yet implemented and will always panic.
Dispatches a fully reassembled L2CAP message to the protocol listening on the addressed channel.
Prepares for sending data using the Attribute Protocol.
This will reserve sufficient space in the outgoing PDU buffer to send any ATT PDU, and then
return an AttributeServerTx
instance that can be used to initiate an ATT-specific
procedure.
Returns None
if there’s not enough space in the TX packet queue to send an ATT PDU. If
that happens, calling this method again at a later time (after the Link-Layer had time to
transmit more packets) might succeed.
Methods from Deref<Target = L2CAPState<M>>
Gives this instance the ability to transmit packets.
Provides mutable access to the underlying ChannelMapper
.
Trait Implementations
type Target = L2CAPState<M>
type Target = L2CAPState<M>
The resulting type after dereferencing.