#[non_exhaustive]pub enum AppSettingsError {
Unavailable,
Denied,
}Expand description
Why open_app_settings failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The platform has no settings page of the app’s own (TS:
ERR_FEATURE_UNAVAILABLE_ON_PLATFORM): only iOS and Android have
one (app_settings_available).
Denied
The app declares capabilities without application (TS:
ERR_ACCESS_DENIED, permission "application").
Trait Implementations§
Source§impl Clone for AppSettingsError
impl Clone for AppSettingsError
impl Copy for AppSettingsError
Source§impl Debug for AppSettingsError
impl Debug for AppSettingsError
Source§impl Display for AppSettingsError
impl Display for AppSettingsError
impl Eq for AppSettingsError
Source§impl Error for AppSettingsError
impl Error for AppSettingsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AppSettingsError
impl PartialEq for AppSettingsError
impl StructuralPartialEq for AppSettingsError
Auto Trait Implementations§
impl Forget for AppSettingsError
impl Freeze for AppSettingsError
impl Move for AppSettingsError
impl RefUnwindSafe for AppSettingsError
impl Send for AppSettingsError
impl Sync for AppSettingsError
impl Unpin for AppSettingsError
impl UnsafeUnpin for AppSettingsError
impl UnwindSafe for AppSettingsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> IntoThrown for Ewhere
E: Display,
impl<E> IntoThrown for Ewhere
E: Display,
Source§fn into_thrown(self) -> Thrown
fn into_thrown(self) -> Thrown
The exception.