pub struct FakeBluetoothDiscoverySession {
adapter: Arc<FakeBluetoothAdapter>,
}
Fields§
§adapter: Arc<FakeBluetoothAdapter>
Implementations§
source§impl FakeBluetoothDiscoverySession
impl FakeBluetoothDiscoverySession
pub fn create_session( adapter: Arc<FakeBluetoothAdapter>, ) -> Result<FakeBluetoothDiscoverySession, Box<dyn Error>>
fn new(adapter: Arc<FakeBluetoothAdapter>) -> FakeBluetoothDiscoverySession
pub fn get_adapter(&self) -> Arc<FakeBluetoothAdapter>
pub fn start_discovery(&self) -> Result<(), Box<dyn Error>>
pub fn stop_discovery(&self) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeBluetoothDiscoverySession
impl RefUnwindSafe for FakeBluetoothDiscoverySession
impl Send for FakeBluetoothDiscoverySession
impl Sync for FakeBluetoothDiscoverySession
impl Unpin for FakeBluetoothDiscoverySession
impl UnwindSafe for FakeBluetoothDiscoverySession
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