pub enum ClientStateConnectorRequest {
Connect {
client_type: String,
watcher: ServerEnd<ClientStateWatcherMarker>,
control_handle: ClientStateConnectorControlHandle,
},
}
Expand description
Allows a client to connect a [ClientStateWatcher
] to the thermal state of
a given ClientType
.
Variants§
Connect
Connects a [ClientStateWatcher
] to the thermal state of the specified
ClientType
.
A client may call this method and begin using the [ClientStateWatcher
]
client endpoint immediately.
If client_type
does not exactly (case-sensitive) match with a client
entry found in the central thermal configuration, then the request will
fail. On failure, both the watcher
server endpoint as well as the
current ClientStateConnector
connection will be terminated.
-
client_type
specifies the client-specific thermal state to whichwatcher
should be connected. The value is valid iff it matches with a client entry found in the central thermal configuration. -
watcher
is the server endpoint of a [ClientStateWatcher
] channel that will be connected to the thermal state ofclient_type
.
Fields
watcher: ServerEnd<ClientStateWatcherMarker>
control_handle: ClientStateConnectorControlHandle
Implementations§
Source§impl ClientStateConnectorRequest
impl ClientStateConnectorRequest
pub fn into_connect( self, ) -> Option<(String, ServerEnd<ClientStateWatcherMarker>, ClientStateConnectorControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL