blew 0.2.3

Cross-platform async BLE library for Rust (Apple, Linux, Android)
Documentation
1
2
3
4
5
6
7
8
9
10
//! Shared L2CAP transport construction for Linux platforms.
//!
//! `bluer::l2cap::Stream` already implements async byte-stream I/O, so Linux can
//! use the native stream directly without an intermediate bridge.

use crate::l2cap::L2capChannel;

pub(crate) fn bridge_l2cap(stream: bluer::l2cap::Stream) -> L2capChannel {
    L2capChannel::from_stream(stream)
}