pub enum ClientProviderRequest {
GetController {
requests: ServerEnd<ClientControllerMarker>,
updates: ClientEnd<ClientStateUpdatesMarker>,
control_handle: ClientProviderControlHandle,
},
}
Expand description
The ClientProvider API provides a mechanism for wlan control and is intended to be called by applications or entities representing the user (ex, Settings). This API is not intended to be called by other applications to change wlan state without explicit user control.
The second aim of this API design is to eliminate the “last-caller wins” paradigm by limiting the number of controlling applications. A single caller at a time is permitted to make API calls that impact wlan state.
Variants§
GetController
Control channel used by a single caller to trigger wlan client mode state changes. The caller also provides a channel to receive wlan updates. Only one caller can have the control channel open at a time. Attempts to register as a controller while there is an active control registration will result in the new caller’s provided channel being closed.
Fields
requests: ServerEnd<ClientControllerMarker>
updates: ClientEnd<ClientStateUpdatesMarker>
control_handle: ClientProviderControlHandle
Implementations§
Source§impl ClientProviderRequest
impl ClientProviderRequest
pub fn into_get_controller( self, ) -> Option<(ServerEnd<ClientControllerMarker>, ClientEnd<ClientStateUpdatesMarker>, ClientProviderControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL