pub enum ProviderRequest {
Enable {
watcher: ClientEnd<ProviderWatcherMarker>,
responder: ProviderEnableResponder,
},
}
Expand description
Protocol to enable the Bluetooth Fast Pair Provider service on the system.
Variants§
Enable
Request to enable the Fast Pair Provider service.
Only one client can register to enable the Fast Pair service. An Error will be returned for subsequent requests.
The lifetime of the service is tied to the provided watcher
. To disable Fast Pair
functionality, close the watcher
.
- request
watcher
The client end of the ProviderWatcher which determines the lifetime of the Fast Pair service.
- response An empty response will be sent when the server has processed the request.
- error Returns
ALREADY_BOUND
if a subsequent request is made to enable the service.
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_enable( self, ) -> Option<(ClientEnd<ProviderWatcherMarker>, ProviderEnableResponder)>
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 ProviderRequest
impl !RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl !UnwindSafe for ProviderRequest
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