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_type
specifies to whichClientType
power level thatwatcher
should be connected. The value is valid iff a power configuration exists for the providedclient_type
. -
watcher
is the server endpoint of a [Watcher
] channel that will be connected to theClientType
power level.
Fields
client_type: ClientType
watcher: ServerEnd<WatcherMarker>
control_handle: ConnectorControlHandle
Implementations§
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