Trait BluetoothRfcommConnectableTrait

Source
pub trait BluetoothRfcommConnectableTrait {
    // 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.

Implementations on Foreign Types§

Source§

impl BluetoothRfcommConnectableTrait for ConnectRequest

Implementors§