pub enum RenewalError {
Declined(String),
Failed(String),
}Expand description
Why CredentialRenewal::renew handed back no fresh pair.
Variants§
Declined(String)
This process chose not to spend the refresh token, and GitHub was not asked.
The pair is intact, so this is not a credential problem: a process that cannot store what the exchange returns leaves renewal to one that can – on a boot-mode host, the service. Reported quietly, because it recurs on every attempt for as long as the renewal window is open and nothing about it needs an operator.
Failed(String)
The renewal was attempted and did not produce a stored pair.
Trait Implementations§
Source§impl Debug for RenewalError
impl Debug for RenewalError
Source§impl Display for RenewalError
impl Display for RenewalError
Source§impl Error for RenewalError
impl Error for RenewalError
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()
Auto Trait Implementations§
impl Freeze for RenewalError
impl RefUnwindSafe for RenewalError
impl Send for RenewalError
impl Sync for RenewalError
impl Unpin for RenewalError
impl UnsafeUnpin for RenewalError
impl UnwindSafe for RenewalError
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