pub enum ConnectorRequest {
Connect {
client_type: ClientType,
watcher: ServerEnd<WatcherMarker>,
control_handle: ConnectorControlHandle,
},
}Expand description
Allows a client to connect a [Watcher] to the power level of a given
ClientType.
Variants§
Connect
Connects a [Watcher] to the power level of the specified
ClientType.
A client may call this method and begin using the [Watcher] client
endpoint immediately.
If a power configuration does not exist for the provided client_type,
then the request will fail. On failure, both the watcher server
endpoint as well as the current Connector connection will be
terminated.
-
client_typespecifies to whichClientTypepower level thatwatchershould be connected. The value is valid iff a power configuration exists for the providedclient_type. -
watcheris the server endpoint of a [Watcher] channel that will be connected to theClientTypepower level.
Fields
client_type: ClientTypewatcher: ServerEnd<WatcherMarker>control_handle: ConnectorControlHandleImplementations§
Source§impl ConnectorRequest
impl ConnectorRequest
pub fn into_connect( self, ) -> Option<(ClientType, ServerEnd<WatcherMarker>, ConnectorControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL