#[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
sourceimpl 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
sourceimpl Clone for KnownErrorCase
impl Clone for KnownErrorCase
sourcefn clone(&self) -> KnownErrorCase
fn clone(&self) -> KnownErrorCase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KnownErrorCase
impl Debug for KnownErrorCase
sourceimpl Display for KnownErrorCase
impl Display for KnownErrorCase
sourceimpl Error for KnownErrorCase
impl Error for KnownErrorCase
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn 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 RefUnwindSafe for KnownErrorCase
impl Send for KnownErrorCase
impl Sync for KnownErrorCase
impl Unpin for KnownErrorCase
impl UnwindSafe for KnownErrorCase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more