Skip to main content

BluetoothRfcommConnectableSyncTrait

Trait BluetoothRfcommConnectableSyncTrait 

Source
pub trait BluetoothRfcommConnectableSyncTrait {
    // Required method
    fn accept(self, timeout: Duration) -> Result<BluetoothStream, String>;
}
Expand description

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

Required Methods§

Source

fn accept(self, timeout: Duration) -> Result<BluetoothStream, String>

Accept a connection from a bluetooth peer

Implementors§