pub struct BluetoothAdapterBuilder { /* private fields */ }
Expand description
A builder for BluetoothAdapter
Implementations§
Source§impl BluetoothAdapterBuilder
impl BluetoothAdapterBuilder
Sourcepub fn with_sender(&mut self, s: Sender<MessageToBluetoothHost>)
pub fn with_sender(&mut self, s: Sender<MessageToBluetoothHost>)
Add the sender to the builder
Sourcepub async fn build(self) -> Result<BluetoothAdapter, String>
pub async fn build(self) -> Result<BluetoothAdapter, String>
Do the build
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BluetoothAdapterBuilder
impl RefUnwindSafe for BluetoothAdapterBuilder
impl Send for BluetoothAdapterBuilder
impl Sync for BluetoothAdapterBuilder
impl Unpin for BluetoothAdapterBuilder
impl UnwindSafe for BluetoothAdapterBuilder
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