pub enum DeviceListenerRegistryRequest {
RegisterMediaButtonsListener {
listener: ClientEnd<MediaButtonsListenerMarker>,
control_handle: DeviceListenerRegistryControlHandle,
},
RegisterListener {
listener: ClientEnd<MediaButtonsListenerMarker>,
responder: DeviceListenerRegistryRegisterListenerResponder,
},
}
Expand description
Service for exposing state and events of devices, such as media buttons.
Variants§
RegisterMediaButtonsListener
Registers a listener to receive media button related events, such as changes from volume buttons and mute switches.
Fields
§
listener: ClientEnd<MediaButtonsListenerMarker>
§
control_handle: DeviceListenerRegistryControlHandle
RegisterListener
Registers a listener to receive media button related events, such as
changes from volume buttons and mute switches.
On registration, the listener
receives the last media button event that
occurred, if one exists, and all media button events going forward.
Fields
§
listener: ClientEnd<MediaButtonsListenerMarker>
Implementations§
Source§impl DeviceListenerRegistryRequest
impl DeviceListenerRegistryRequest
pub fn into_register_listener( self, ) -> Option<(ClientEnd<MediaButtonsListenerMarker>, DeviceListenerRegistryRegisterListenerResponder)>
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 DeviceListenerRegistryRequest
impl !RefUnwindSafe for DeviceListenerRegistryRequest
impl Send for DeviceListenerRegistryRequest
impl Sync for DeviceListenerRegistryRequest
impl Unpin for DeviceListenerRegistryRequest
impl !UnwindSafe for DeviceListenerRegistryRequest
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