pub enum CredentialLifetimeError {
ZeroExpiresIn,
ZeroRefreshWindow,
RefreshWindowTooLarge,
TimestampOverflow,
}Expand description
Invalid OAuth-style credential lifetime.
Variants§
ZeroExpiresIn
expires_in must be nonzero.
ZeroRefreshWindow
Refresh lead time must be nonzero so a refresh window exists.
RefreshWindowTooLarge
Refresh lead time must leave a nonempty fresh interval.
TimestampOverflow
The caller timestamp and expires_in overflow the representation.
Trait Implementations§
Source§impl Clone for CredentialLifetimeError
impl Clone for CredentialLifetimeError
Source§fn clone(&self) -> CredentialLifetimeError
fn clone(&self) -> CredentialLifetimeError
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 moreimpl Copy for CredentialLifetimeError
Source§impl Debug for CredentialLifetimeError
impl Debug for CredentialLifetimeError
Source§impl Display for CredentialLifetimeError
impl Display for CredentialLifetimeError
impl Eq for CredentialLifetimeError
Source§impl Error for CredentialLifetimeError
impl Error for CredentialLifetimeError
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 CredentialLifetimeError
impl PartialEq for CredentialLifetimeError
impl StructuralPartialEq for CredentialLifetimeError
Auto Trait Implementations§
impl Freeze for CredentialLifetimeError
impl RefUnwindSafe for CredentialLifetimeError
impl Send for CredentialLifetimeError
impl Sync for CredentialLifetimeError
impl Unpin for CredentialLifetimeError
impl UnsafeUnpin for CredentialLifetimeError
impl UnwindSafe for CredentialLifetimeError
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