Skip to main content

BluetoothL2capConnectableAsyncTrait

Trait BluetoothL2capConnectableAsyncTrait 

Source
pub trait BluetoothL2capConnectableAsyncTrait {
    // Required method
    async fn accept(self) -> Result<BluetoothStream, String>;
}
Expand description

The trait for bluetooth rfcomm objects that can be connected or accepted

Required Methods§

Source

async fn accept(self) -> Result<BluetoothStream, String>

Accept a connection from a bluetooth peer

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§