pub enum ClientStateWatcherRequest {
Watch {
responder: ClientStateWatcherWatchResponder,
},
}
Expand description
Allows a client to watch for changes to its thermal state.
This protocol cannot be connected to the service directly. Instead, the
server endpoint of a ClientStateWatcher
channel must be connected to the
thermal state of the desired client type using the
[ClientStateConnector.Connect'] method. The client endpoint of a
ClientStateWatcher` channel is only useful after it has been connected in
this way.
Variants§
Watch
Watches for changes to a client’s thermal state.
A client’s thermal state is determined according to the central thermal configuration of its specific type. See the README.md for more details.
On a given connection, the first call will return immediately with the
client’s current thermal state. Subsequent Watch
requests will only
return a new state
if the client’s thermal state has changed. This
follows the hanging
get
pattern.
state
is an unsigned integer representing the client’s thermal state.
Fields
responder: ClientStateWatcherWatchResponder
Implementations§
Source§impl ClientStateWatcherRequest
impl ClientStateWatcherRequest
pub fn into_watch(self) -> Option<ClientStateWatcherWatchResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL