pub enum BluetoothSocket {
Bluez(BluetoothRfcommSocket),
}Expand description
A bluetooth rfcomm socket
Variants§
Bluez(BluetoothRfcommSocket)
Linux using bluez library
Trait Implementations§
Source§impl BluetoothSocketTrait for BluetoothSocket
impl BluetoothSocketTrait for BluetoothSocket
Source§fn async_connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn async_connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
connect the socket
Source§fn supports_async(&mut self) -> Option<&mut dyn AsyncReadWrite>
fn supports_async(&mut self) -> Option<&mut dyn AsyncReadWrite>
Does the socket support async?
Source§fn supports_sync(&mut self) -> Option<&mut dyn SyncReadWrite>
fn supports_sync(&mut self) -> Option<&mut dyn SyncReadWrite>
Does the socket support sync?
Auto Trait Implementations§
impl !Freeze for BluetoothSocket
impl !RefUnwindSafe for BluetoothSocket
impl Send for BluetoothSocket
impl Sync for BluetoothSocket
impl Unpin for BluetoothSocket
impl UnsafeUnpin for BluetoothSocket
impl !UnwindSafe for BluetoothSocket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more