#[non_exhaustive]pub enum DeviceNotFoundReason {
NoDevicesInRange,
NotFound {
identifier: String,
},
ScanTimeout {
duration: Duration,
},
NoAdapter,
}Expand description
Reason why a device was not found.
This enum is marked #[non_exhaustive] to allow adding new reasons
in future versions without breaking downstream code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoDevicesInRange
No devices found during scan.
NotFound
Device with specified name/address not found.
ScanTimeout
Scan timed out before finding device.
NoAdapter
No Bluetooth adapter available.
Trait Implementations§
Source§impl Clone for DeviceNotFoundReason
impl Clone for DeviceNotFoundReason
Source§fn clone(&self) -> DeviceNotFoundReason
fn clone(&self) -> DeviceNotFoundReason
Returns a duplicate 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 moreSource§impl Debug for DeviceNotFoundReason
impl Debug for DeviceNotFoundReason
Auto Trait Implementations§
impl Freeze for DeviceNotFoundReason
impl RefUnwindSafe for DeviceNotFoundReason
impl Send for DeviceNotFoundReason
impl Sync for DeviceNotFoundReason
impl Unpin for DeviceNotFoundReason
impl UnwindSafe for DeviceNotFoundReason
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