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 fn build(self) -> Result<BluetoothAdapter, String>
pub fn build(self) -> Result<BluetoothAdapter, String>
Do the build
Sourcepub async fn async_build(self) -> Result<BluetoothAdapter, String>
pub async fn async_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 UnsafeUnpin 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