#[non_exhaustive]pub enum WeatherError {
PermissionDenied,
Unknown(String),
}Expand description
Represents a typed WeatherKit error case.
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.
PermissionDenied
Matches the WeatherKit PermissionDenied case.
Unknown(String)
Stores an unrecognized WeatherKit case name.
Implementations§
Source§impl WeatherError
impl WeatherError
Sourcepub fn descriptors() -> Result<Vec<WeatherErrorDescriptor>, WeatherKitError>
pub fn descriptors() -> Result<Vec<WeatherErrorDescriptor>, WeatherKitError>
Returns the WeatherKit descriptor catalog for this enum.
Trait Implementations§
Source§impl Clone for WeatherError
impl Clone for WeatherError
Source§fn clone(&self) -> WeatherError
fn clone(&self) -> WeatherError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeatherError
impl Debug for WeatherError
Source§impl PartialEq for WeatherError
impl PartialEq for WeatherError
Source§fn eq(&self, other: &WeatherError) -> bool
fn eq(&self, other: &WeatherError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WeatherError
impl StructuralPartialEq for WeatherError
Auto Trait Implementations§
impl Freeze for WeatherError
impl RefUnwindSafe for WeatherError
impl Send for WeatherError
impl Sync for WeatherError
impl Unpin for WeatherError
impl UnsafeUnpin for WeatherError
impl UnwindSafe for WeatherError
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