pub enum RegistryRequest {
WatchDevicesAdded {
responder: RegistryWatchDevicesAddedResponder,
},
WatchDeviceRemoved {
responder: RegistryWatchDeviceRemovedResponder,
},
CreateObserver {
payload: RegistryCreateObserverRequest,
responder: RegistryCreateObserverResponder,
},
}
Expand description
Registry
instances notify clients as devices arrive and depart, and they
create observers (see Observer
) that notify of more detailed state changes.
Variants§
WatchDevicesAdded
Register for notification when one or more devices are added.
The devices
vector will always contain at least one Info
entry.
Fields
§
responder: RegistryWatchDevicesAddedResponder
WatchDeviceRemoved
Register for notification when an (active, added) device is removed. Because the method only notifies of one removal, upon completion it should immediately be re-called, in case other removals have occurred.
Fields
§
responder: RegistryWatchDeviceRemovedResponder
CreateObserver
Request an Observer
for the specified device.
Implementations§
source§impl RegistryRequest
impl RegistryRequest
pub fn into_watch_devices_added( self ) -> Option<RegistryWatchDevicesAddedResponder>
pub fn into_watch_device_removed( self ) -> Option<RegistryWatchDeviceRemovedResponder>
pub fn into_create_observer( self ) -> Option<(RegistryCreateObserverRequest, RegistryCreateObserverResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegistryRequest
impl !RefUnwindSafe for RegistryRequest
impl Send for RegistryRequest
impl Sync for RegistryRequest
impl Unpin for RegistryRequest
impl !UnwindSafe for RegistryRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more