pub enum Want {
Request(RequestDeviceOptions),
Scan {
options: RequestDeviceOptions,
keep_repeated: bool,
},
Device {
id: String,
grant: Grant,
},
}Expand description
Why something is watching the radio.
The hub keeps one scan for all of them and hands each watcher only what it
asked for, so a request_device finishing cannot stop somebody else’s
watchAdvertisements.
Variants§
Request(RequestDeviceOptions)
A requestDevice chooser. Duplicates are wanted: they keep RSSI live
while the chooser is deciding.
Scan
requestLEScan.
Fields
§
options: RequestDeviceOptionsWhat the caller asked for, which is also what it may be told.
Device
watchAdvertisements on one granted device — every packet from it, but
reported through the grant that device was given.
One device’s advertisements — watchAdvertisements.
Auto Trait Implementations§
impl Freeze for Want
impl RefUnwindSafe for Want
impl Send for Want
impl Sync for Want
impl Unpin for Want
impl UnsafeUnpin for Want
impl UnwindSafe for Want
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