pub enum DoNotDisturbRequest {
Watch {
responder: DoNotDisturbWatchResponder,
},
Set {
settings: DoNotDisturbSettings,
responder: DoNotDisturbSetResponder,
},
}
Expand description
Modify or watch do-not-disturb (DND) mode. While DND is active, distractions created by the device are reduced or eliminated. E.g. bootup is silent, incoming calls could be rejected or silent, and notifications could be paused, silent, or hidden. High-priority disruptions like alarms can be allowed.
Supported SettingsEpitaph enums: REQUEST_NOT_SUPPORTED, INTERNAL_SERVICE_ERROR, PERSISTENT_STORAGE_ERROR
Variants§
Watch
Gets the current DoNotDisturbSettings
. Returns immediately on first
call; subsequent calls return when the values change.
If this call fails, it is considered a fatal error and the channel will be closed.
Fields
responder: DoNotDisturbWatchResponder
Set
Sets DoNotDisturbSettings
settings. Any field not explicitly set in
the table performs a no-op, and will not make any changes.
Implementations§
Source§impl DoNotDisturbRequest
impl DoNotDisturbRequest
pub fn into_watch(self) -> Option<DoNotDisturbWatchResponder>
pub fn into_set( self, ) -> Option<(DoNotDisturbSettings, DoNotDisturbSetResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL