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
Fields
§
responder: SetupWatchResponder
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.
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