Enum matrix_sdk::RefreshTokenError
source · [−]pub enum RefreshTokenError {
ClientApi(Error),
RefreshTokenRequired,
UnableToRefreshToken,
}
Expand description
Errors that can happen when refreshing an access token.
This is usually only returned by Client::refresh_access_token()
, unless
handling refresh tokens is activated for the Client
.
Variants
ClientApi(Error)
The Matrix endpoint returned an error.
RefreshTokenRequired
Tried to send a refresh token request without a refresh token.
UnableToRefreshToken
There was an ongoing refresh token call that failed and the error could not be forwarded.
Trait Implementations
sourceimpl Clone for RefreshTokenError
impl Clone for RefreshTokenError
sourcefn clone(&self) -> RefreshTokenError
fn clone(&self) -> RefreshTokenError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RefreshTokenError
impl Debug for RefreshTokenError
sourceimpl Display for RefreshTokenError
impl Display for RefreshTokenError
sourceimpl Error for RefreshTokenError
impl Error for RefreshTokenError
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()
sourceimpl From<Error> for RefreshTokenError
impl From<Error> for RefreshTokenError
sourceimpl From<RefreshTokenError> for HttpError
impl From<RefreshTokenError> for HttpError
sourcefn from(source: RefreshTokenError) -> Self
fn from(source: RefreshTokenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for RefreshTokenError
impl Send for RefreshTokenError
impl Sync for RefreshTokenError
impl Unpin for RefreshTokenError
impl UnwindSafe for RefreshTokenError
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