pub enum DeviceListenerRequest {
OnDeviceChanged {
event: DeviceEvent,
control_handle: DeviceListenerControlHandle,
},
}Expand description
Callback protocol implemented by clients to receive live device change events.
Events are sent to this listener only for changes occurring after registration is complete.
Variants§
OnDeviceChanged
Called when a device change event occurs.
Implementations§
Source§impl DeviceListenerRequest
impl DeviceListenerRequest
pub fn into_on_device_changed( self, ) -> Option<(DeviceEvent, DeviceListenerControlHandle)>
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 !RefUnwindSafe for DeviceListenerRequest
impl !UnwindSafe for DeviceListenerRequest
impl Freeze for DeviceListenerRequest
impl Send for DeviceListenerRequest
impl Sync for DeviceListenerRequest
impl Unpin for DeviceListenerRequest
impl UnsafeUnpin for DeviceListenerRequest
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