pub struct WeatherKitError {
pub domain: String,
pub code: i64,
pub message: String,
}Expand description
Represents an error returned by WeatherKit or the bridge layer.
Fields§
§domain: StringMatches the WeatherKit domain value.
code: i64Matches the WeatherKit code value.
message: StringMatches the WeatherKit message value.
Implementations§
Source§impl WeatherKitError
impl WeatherKitError
Sourcepub fn is_entitlement_issue(&self) -> bool
pub fn is_entitlement_issue(&self) -> bool
Returns whether this WeatherKit error looks like an entitlement or authorization issue.
Trait Implementations§
Source§impl Clone for WeatherKitError
impl Clone for WeatherKitError
Source§fn clone(&self) -> WeatherKitError
fn clone(&self) -> WeatherKitError
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 WeatherKitError
impl Debug for WeatherKitError
Source§impl Display for WeatherKitError
impl Display for WeatherKitError
Source§impl Error for WeatherKitError
impl Error for WeatherKitError
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 WeatherKitError
impl PartialEq for WeatherKitError
Source§fn eq(&self, other: &WeatherKitError) -> bool
fn eq(&self, other: &WeatherKitError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WeatherKitError
impl StructuralPartialEq for WeatherKitError
Auto Trait Implementations§
impl Freeze for WeatherKitError
impl RefUnwindSafe for WeatherKitError
impl Send for WeatherKitError
impl Sync for WeatherKitError
impl Unpin for WeatherKitError
impl UnsafeUnpin for WeatherKitError
impl UnwindSafe for WeatherKitError
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