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