[][src]Struct rubble::l2cap::L2CAPState

pub struct L2CAPState<M: ChannelMapper> { /* fields omitted */ }

L2CAP channel manager and responder.

Methods

impl<M: ChannelMapper> L2CAPState<M>[src]

pub fn new(mapper: M) -> Self[src]

pub fn process_start(
    &mut self,
    message: &[u8],
    tx: &mut Producer
) -> Consume<()>
[src]

Process the start of a new L2CAP message (or a complete, unfragmented message).

pub fn process_cont(&mut self, _data: &[u8], _tx: &mut Producer) -> Consume<()>[src]

Process continuation of an L2CAP message.

Auto Trait Implementations

impl<M> Send for L2CAPState<M> where
    M: Send

impl<M> Sync for L2CAPState<M> where
    M: Sync

Blanket Implementations

impl<T> From for T[src]

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, 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]