Skip to main content

BluetoothRfcommConnectableAsyncTrait

Trait BluetoothRfcommConnectableAsyncTrait 

Source
pub trait BluetoothRfcommConnectableAsyncTrait {
    // Required method
    fn accept<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<BluetoothStream, String>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

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

Required Methods§

Source

fn accept<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<BluetoothStream, String>> + Send + 'async_trait>>
where Self: 'async_trait,

Accept a connection from a bluetooth peer

Implementations on Foreign Types§

Source§

impl BluetoothRfcommConnectableAsyncTrait for ConnectRequest

Source§

fn accept<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<BluetoothStream, String>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§