pub enum MonitorRequest {
GetAction {
responder: MonitorGetActionResponder,
},
SetAction {
action: Action,
responder: MonitorSetActionResponder,
},
}
Expand description
Protocol to manage the power button monitor. This protocol allows applications to configure the action performed when the power button is pressed. It is intended for board-specific components that need to use the power button for their own purposes (e.g. as a physical presence check).
Variants§
GetAction
Get the current action for the power button. Always returns immediately, never fails.
Fields
§
responder: MonitorGetActionResponder
SetAction
Set the action that will be performed when the power button is pressed. Always returns immediately, never fails.
Implementations§
Source§impl MonitorRequest
impl MonitorRequest
pub fn into_get_action(self) -> Option<MonitorGetActionResponder>
pub fn into_set_action(self) -> Option<(Action, MonitorSetActionResponder)>
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 MonitorRequest
impl !RefUnwindSafe for MonitorRequest
impl Send for MonitorRequest
impl Sync for MonitorRequest
impl Unpin for MonitorRequest
impl !UnwindSafe for MonitorRequest
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