pub struct FirstMatch { /* private fields */ }Expand description
Take the first device that matches.
The default. Convenient and fully automatic — and worth being deliberate about, because it removes the consent step the Web Bluetooth security model is built on. Prefer a chooser that involves the operator for anything user-facing.
Implementations§
Source§impl FirstMatch
impl FirstMatch
Sourcepub fn with_timeout(timeout: Duration) -> Self
pub fn with_timeout(timeout: Duration) -> Self
Give up after timeout with NotFoundError.
Trait Implementations§
Source§impl Clone for FirstMatch
impl Clone for FirstMatch
Source§impl Debug for FirstMatch
impl Debug for FirstMatch
Source§impl Default for FirstMatch
impl Default for FirstMatch
Source§impl DeviceChooser for FirstMatch
impl DeviceChooser for FirstMatch
Auto Trait Implementations§
impl Freeze for FirstMatch
impl RefUnwindSafe for FirstMatch
impl Send for FirstMatch
impl Sync for FirstMatch
impl Unpin for FirstMatch
impl UnsafeUnpin for FirstMatch
impl UnwindSafe for FirstMatch
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