pub enum ScanFilter {
None,
Service(Uuid),
AnyService(Vec<Uuid>),
AllServices(Vec<Uuid>),
ManufacturerData(u16, Vec<u8>),
}
Expand description
Filter for discovering devices. Only devices matching the filter will be returned by the handler::discover method
Variants§
None
Service(Uuid)
Matches if the device advertises the specified service.
AnyService(Vec<Uuid>)
Matches if the device advertises any of the specified services.
AllServices(Vec<Uuid>)
Matches if the device advertises all of the specified services.
ManufacturerData(u16, Vec<u8>)
Matches if the device advertises the specified manufacturer data.
Auto Trait Implementations§
impl Freeze for ScanFilter
impl RefUnwindSafe for ScanFilter
impl Send for ScanFilter
impl Sync for ScanFilter
impl Unpin for ScanFilter
impl UnwindSafe for ScanFilter
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