pub enum MediaButtonsListenerRequest {
OnMediaButtonsEvent {
event: MediaButtonsEvent,
control_handle: MediaButtonsListenerControlHandle,
},
OnEvent {
event: MediaButtonsEvent,
responder: MediaButtonsListenerOnEventResponder,
},
}
Expand description
A listener for media buttons events. DeviceListenerRegistry.RegisterMediaButtonsListener
will consume this listener interface and call OnMediaButtonsEvent
when the
registered media buttons event occurs.
Variants§
Implementations§
Source§impl MediaButtonsListenerRequest
impl MediaButtonsListenerRequest
pub fn into_on_event( self, ) -> Option<(MediaButtonsEvent, MediaButtonsListenerOnEventResponder)>
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 MediaButtonsListenerRequest
impl !RefUnwindSafe for MediaButtonsListenerRequest
impl Send for MediaButtonsListenerRequest
impl Sync for MediaButtonsListenerRequest
impl Unpin for MediaButtonsListenerRequest
impl !UnwindSafe for MediaButtonsListenerRequest
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