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

pub struct BleChannelMap<A: AttributeProvider, S: SecurityLevel> { /* fields omitted */ }

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.

Methods

impl BleChannelMap<NoAttributes, NoSecurity>[src]

pub fn empty() -> Self[src]

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.

impl<A: AttributeProvider> BleChannelMap<A, NoSecurity>[src]

pub fn with_attributes(att: A) -> Self[src]

Trait Implementations

impl<A: AttributeProvider, S: SecurityLevel> ChannelMapper for BleChannelMap<A, S>[src]

Auto Trait Implementations

impl<A, S> Send for BleChannelMap<A, S> where
    A: Send,
    S: Send

impl<A, S> Sync for BleChannelMap<A, S> where
    A: Sync,
    S: Sync

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]