Struct rubble::l2cap::BleChannelMap[][src]

pub struct BleChannelMap<A: AttributeProvider, S: SecurityLevel> {
    att: AttributeServer<A>,
    signaling: SignalingState,
    sm: SecurityManager<S>,
}
Expand description

A fixed BLE channel map that provides only the required channel endpoints and does not allow dynamic channels.

The channels are mapped as follows (no other channels are supported):

  • 0x0004: Attribute protocol (ATT).
  • 0x0005: LE L2CAP signaling channel.
  • 0x0006: LE Security Manager protocol.

Fields

att: AttributeServer<A>signaling: SignalingStatesm: SecurityManager<S>

Implementations

Creates a new channel map with no backing data for the connected protocols.

This means:

  • The attribute server on channel 0x0004 will host an empty attribute set.
  • The security manager on channel 0x0006 will not support pairing or any security.

Provides mutable access to the underlying AttributeProvider.

Trait Implementations

The attribute provider used by the ATT server.

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

Returns information about the Attribute Protocol on channel 0x0004.

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.