Trait rubble::l2cap::ChannelMapper[][src]

pub trait ChannelMapper {
    type AttributeProvider: AttributeProvider;
    fn lookup(
        &mut self,
        channel: Channel
    ) -> Option<ChannelData<'_, dyn ProtocolObj>>;
fn att(
        &mut self
    ) -> ChannelData<'_, AttributeServer<Self::AttributeProvider>>; }
Expand description

Trait for L2CAP channel mappers that provide access to the protocol or service behind a CID.

Associated Types

The attribute provider used by the ATT server.

Required methods

Look up what’s connected to channel (eg. the Protocol to which to forward).

Returns information about the Attribute Protocol on channel 0x0004.

Implementors