pub enum ScanResultWatcherRequest {
Watch {
responder: ScanResultWatcherWatchResponder,
},
}
Expand description
Represents an active scan procedure. This protocol remains valid for the
duration of a scan and can be used to obtain scan results. The client can
close the protocol to stop scanning. If a scan is stopped by the system, the
protocol will be closed with the epitaph CANCELED
to communicate this to
the client.
Variants§
Watch
Returns a list of all LE peers that satisfy the filters indicated in
ScanOptions
. The first response(s) will return matching discovered
peers immediately. Subsequent calls receive a response only when peers
have been scanned or updated since the last call. If a second call to
Watch
is erronously sent while one call is already pending, the scan
will be canceled and the protocol will be closed.
- response
updated
Peers that were added or updated since the last call to Watch().
Fields
§
responder: ScanResultWatcherWatchResponder
Implementations§
Source§impl ScanResultWatcherRequest
impl ScanResultWatcherRequest
pub fn into_watch(self) -> Option<ScanResultWatcherWatchResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanResultWatcherRequest
impl !RefUnwindSafe for ScanResultWatcherRequest
impl Send for ScanResultWatcherRequest
impl Sync for ScanResultWatcherRequest
impl Unpin for ScanResultWatcherRequest
impl !UnwindSafe for ScanResultWatcherRequest
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