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
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.
Fields
§
responder: PrivacyWatchResponder
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrivacyRequest
impl !RefUnwindSafe for PrivacyRequest
impl Send for PrivacyRequest
impl Sync for PrivacyRequest
impl Unpin for PrivacyRequest
impl !UnwindSafe for PrivacyRequest
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