Struct bluetooth::empty::BluetoothDiscoverySession
source · pub struct BluetoothDiscoverySession {}
Implementations§
source§impl BluetoothDiscoverySession
impl BluetoothDiscoverySession
pub fn create_session( _adapter: Arc<EmptyAdapter>, ) -> Result<BluetoothDiscoverySession, Box<dyn Error>>
pub fn start_discovery(&self) -> Result<(), Box<dyn Error>>
pub fn stop_discovery(&self) -> Result<(), Box<dyn Error>>
Trait Implementations§
source§impl Clone for BluetoothDiscoverySession
impl Clone for BluetoothDiscoverySession
source§fn clone(&self) -> BluetoothDiscoverySession
fn clone(&self) -> BluetoothDiscoverySession
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BluetoothDiscoverySession
impl RefUnwindSafe for BluetoothDiscoverySession
impl Send for BluetoothDiscoverySession
impl Sync for BluetoothDiscoverySession
impl Unpin for BluetoothDiscoverySession
impl UnwindSafe for BluetoothDiscoverySession
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