Enum matrix_sdk::RefreshTokenError
source · pub enum RefreshTokenError {
RefreshTokenRequired,
MatrixAuth(Arc<HttpError>),
Oidc(Arc<OidcError>),
}
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.
Oidc(Arc<OidcError>)
Available on crate feature
experimental-oidc
only.An error occurred interacting with the OpenID Connect 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>