pub enum PrivacyRequest {
Watch {
responder: PrivacyWatchResponder,
},
Set {
settings: PrivacySettings,
responder: PrivacySetResponder,
},
}
Expand description
Settings related to privacy.
Supported SettingsEpitaph enums: REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR
Variants§
Watch
Fields
§
responder: PrivacyWatchResponder
Notifies of a change in privacy settings.
On a given connection, the server will return immediately if this is the first call made,
or if the settings
value has changed since a previous call. Otherwise, the server will
wait on a value change before returning the new value. This follows the hanging get pattern.
If this call fails, it is considered a fatal error and the channel will be closed.
Set
Sets the privacy settings.
Any field not explicitly set in settings
performs a no-op, and will not make any changes.
Implementations§
source§impl PrivacyRequest
impl PrivacyRequest
pub fn into_watch(self) -> Option<PrivacyWatchResponder>
pub fn into_set(self) -> Option<(PrivacySettings, PrivacySetResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL