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

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.