Enum matrix_sdk::RefreshTokenError
source · pub enum RefreshTokenError {
RefreshTokenRequired,
MatrixAuth(Arc<HttpError>),
}
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§
RefreshTokenRequired
Tried to send a refresh token request without a refresh token.
MatrixAuth(Arc<HttpError>)
An error occurred interacting with the native Matrix authentication API.
Trait Implementations§
source§impl Clone for RefreshTokenError
impl Clone for RefreshTokenError
source§fn clone(&self) -> RefreshTokenError
fn clone(&self) -> RefreshTokenError
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 RefreshTokenError
impl Debug for RefreshTokenError
source§impl Display for RefreshTokenError
impl Display for RefreshTokenError
source§impl Error for RefreshTokenError
impl Error for RefreshTokenError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<RefreshTokenError> for HttpError
impl From<RefreshTokenError> for HttpError
source§fn 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§
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