pub enum FactoryResetRequest {
Watch {
responder: FactoryResetWatchResponder,
},
Set {
settings: FactoryResetSettings,
responder: FactoryResetSetResponder,
},
}
Expand description
Settings related to factory reset.
Variants§
Watch
Notifies of a change in information about the factory reset settings.
On a given connection, the first call will return the current settings
value while subsequent calls will only return the new settings
value
upon a value change. This follows the hanging get pattern.
If this call fails, it is considered a fatal error and the channel will be closed.
Fields
§
responder: FactoryResetWatchResponder
Set
Sets factory reset settings. Any field not explicitly set in the table performs a no-op, and will not make any changes.
Implementations§
Source§impl FactoryResetRequest
impl FactoryResetRequest
pub fn into_watch(self) -> Option<FactoryResetWatchResponder>
pub fn into_set( self, ) -> Option<(FactoryResetSettings, FactoryResetSetResponder)>
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 FactoryResetRequest
impl !RefUnwindSafe for FactoryResetRequest
impl Send for FactoryResetRequest
impl Sync for FactoryResetRequest
impl Unpin for FactoryResetRequest
impl !UnwindSafe for FactoryResetRequest
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