pub enum SetupRequest {
Watch {
responder: SetupWatchResponder,
},
Set {
settings: SetupSettings,
reboot_device: bool,
responder: SetupSetResponder,
},
}
Expand description
Settings that influence the device’s setup behavior.
Supported SettingsEpitaph enums: REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR
Variants§
Watch
Gets the current SetupSettings. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
Fields
§
responder: SetupWatchResponder
Set
Changes the settings specified in SetupSettings. Any field not set in the table will not perform any system operation. An error will be returned if the provided settings is an invalid change (for example, if it is empty).
Implementations§
Source§impl SetupRequest
impl SetupRequest
pub fn into_watch(self) -> Option<SetupWatchResponder>
pub fn into_set(self) -> Option<(SetupSettings, bool, SetupSetResponder)>
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 SetupRequest
impl !RefUnwindSafe for SetupRequest
impl Send for SetupRequest
impl Sync for SetupRequest
impl Unpin for SetupRequest
impl !UnwindSafe for SetupRequest
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