[−][src]Struct rubble::l2cap::BleChannelMap
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]
fn lookup(&mut self, channel: Channel) -> Option<ChannelData>
[src]
Auto Trait Implementations
impl<A, S> Send for BleChannelMap<A, S> where
A: Send,
S: Send,
A: Send,
S: Send,
impl<A, S> Sync for BleChannelMap<A, S> where
A: Sync,
S: Sync,
A: Sync,
S: Sync,
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,