pub enum DeviceWatcherRequest {
WatchDevices {
responder: DeviceWatcherWatchDevicesResponder,
},
}Expand description
Protocol for discovering and resolving LoWPAN interfaces and their associated control protocol instances.
Variants§
WatchDevices
Observes when devices are added or removed.
The first call to this method returns immediately with a
DeviceChanges struct containing only items in the added field with
the names of all of the current devices. Subsequent calls
will block until a device has been added or removed, at which
point it will return with the added and/or removed fields
filled out accordingly. The changes are reported since the
time that the method returned.
If both the added and removed fields have names in the returned
table, then the removed field MUST be processed BEFORE added field.
If a device was added and then removed in-between calls to this
method, the device will be absent from both the added and removed
lists.
If the same device name is listed on both the added and removed
fields, then the client should assume that the original device was
removed and a new device instance started in its place. However, while
the client should be able to handle this condition, it should not depend
on the server will always have this behavior.
Fields
responder: DeviceWatcherWatchDevicesResponderImplementations§
Source§impl DeviceWatcherRequest
impl DeviceWatcherRequest
pub fn into_watch_devices(self) -> Option<DeviceWatcherWatchDevicesResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL