pub enum DeviceWatcherRequest {
NextDevice {
responder: DeviceWatcherNextDeviceResponder,
},
}
Expand description
This protocol represents watching a specific class of devices. Each client
that connects will be able to poll NextDevice
to be able to get all devices.
Variants§
NextDevice
Fields
§
responder: DeviceWatcherNextDeviceResponder
A Hanging-Get API that returns the next device. This will not return until there is a new device available. Call this repeatedly to get all devices. If there is already an outstanding request then calling this again will return ZX_ERR_ALREADY_BOUND.
Implementations§
source§impl DeviceWatcherRequest
impl DeviceWatcherRequest
pub fn into_next_device(self) -> Option<DeviceWatcherNextDeviceResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL