pub enum DeviceRequest {
SetIsLocalResetAllowed {
allowed: bool,
control_handle: DeviceControlHandle,
},
}
Expand description
A protocol for controlling whether factory reset can be triggered by holding the physical button. This protocol will be used by Settings service to make root_presenter aware of a new FactoryReset policy.
Variants§
SetIsLocalResetAllowed
Sets whether local factory reset is enabled, and persists the setting after reboot. If this function has never been called on this device, then local factory reset is allowed by default.
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_set_is_local_reset_allowed( self, ) -> Option<(bool, DeviceControlHandle)>
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 DeviceRequest
impl !RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl !UnwindSafe for DeviceRequest
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