pub enum ProviderWatcherRequest {
OnPairingComplete {
id: PeerId,
responder: ProviderWatcherOnPairingCompleteResponder,
},
}
Expand description
Represents an active Fast Pair Provider service. The lifetime of the service is tied to this protocol.
Closing the protocol disables the service.
The system may close the protocol to communicate that the service was terminated for internal reasons.
Variants§
OnPairingComplete
Called if the Fast Pair pairing procedure for a peer is successfully complete.
- request
id
The unique ID associated with the connected Fast Pair Seeker peer.
- response Each
OnPairingComplete
request should be acknowledged.
Implementations§
Source§impl ProviderWatcherRequest
impl ProviderWatcherRequest
pub fn into_on_pairing_complete( self, ) -> Option<(PeerId, ProviderWatcherOnPairingCompleteResponder)>
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 ProviderWatcherRequest
impl !RefUnwindSafe for ProviderWatcherRequest
impl Send for ProviderWatcherRequest
impl Sync for ProviderWatcherRequest
impl Unpin for ProviderWatcherRequest
impl !UnwindSafe for ProviderWatcherRequest
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