#[non_exhaustive]pub enum KnownErrorCase {
ApiTooManyCalls,
ApiUserTooManyCalls,
AccessTokenExpiredOrRevokedOrInvalid,
PermissionNotGrantedOrRemoved,
RetryLater,
}
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.
ApiTooManyCalls
ApiUserTooManyCalls
AccessTokenExpiredOrRevokedOrInvalid
PermissionNotGrantedOrRemoved
RetryLater
Implementations§
Source§impl KnownErrorCase
impl KnownErrorCase
pub fn is_api_too_many_calls(&self) -> bool
pub fn is_api_user_too_many_calls(&self) -> bool
pub fn is_access_token_expired_or_revoked_or_invalid(&self) -> bool
pub fn is_permission_not_granted_or_removed(&self) -> bool
pub fn is_retry_later(&self) -> bool
Trait Implementations§
Source§impl Clone for KnownErrorCase
impl Clone for KnownErrorCase
Source§fn clone(&self) -> KnownErrorCase
fn clone(&self) -> KnownErrorCase
Returns a copy of the value. Read more
1.0.0 · 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 KnownErrorCase
impl Debug for KnownErrorCase
Source§impl Display for KnownErrorCase
impl Display for KnownErrorCase
Source§impl Error for KnownErrorCase
impl Error for KnownErrorCase
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()
impl Copy for KnownErrorCase
Auto Trait Implementations§
impl Freeze for KnownErrorCase
impl RefUnwindSafe for KnownErrorCase
impl Send for KnownErrorCase
impl Sync for KnownErrorCase
impl Unpin for KnownErrorCase
impl UnwindSafe for KnownErrorCase
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