pub enum MediaButtonsDeviceRequest {
SimulateButtonPress {
payload: MediaButtonsDeviceSimulateButtonPressRequest,
responder: MediaButtonsDeviceSimulateButtonPressResponder,
},
SendButtonsState {
payload: MediaButtonsDeviceSendButtonsStateRequest,
responder: MediaButtonsDeviceSendButtonsStateResponder,
},
}
Expand description
A tool to inject media button events into Input Pipeline.
Please extend as necessary.
Variants§
SimulateButtonPress
Simulates a button press and release on the requested button on the device.
Fields
SendButtonsState
Send a vector of pressing button on the requested button on the device. Passing empty vector will release all pressing buttons.
Fields
§
responder: MediaButtonsDeviceSendButtonsStateResponder
Implementations§
Source§impl MediaButtonsDeviceRequest
impl MediaButtonsDeviceRequest
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 MediaButtonsDeviceRequest
impl !RefUnwindSafe for MediaButtonsDeviceRequest
impl Send for MediaButtonsDeviceRequest
impl Sync for MediaButtonsDeviceRequest
impl Unpin for MediaButtonsDeviceRequest
impl !UnwindSafe for MediaButtonsDeviceRequest
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