pub enum Filter {
ServiceUuid(Uuid),
HasServiceData(Uuid),
HasManufacturerData(u16),
IsConnectable,
MatchesName(String),
MaxPathLoss(i8),
}
Expand description
Matches a single advertised attribute or condition from a Bluetooth Low Energy peer.
Variants§
ServiceUuid(Uuid)
Advertised Service UUID
HasServiceData(Uuid)
ServiceData is included which is associated with the UUID
HasManufacturerData(u16)
ManufacturerData is provided with the Company Identifier Code given
IsConnectable
Connectable flag is set
MatchesName(String)
String provided is included in the peer’s name
MaxPathLoss(i8)
Path loss from the peer (RSSI - Advertised TX Power) is below the given dB value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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