pub enum CoordinationError {
Show 18 variants
Coordination(String),
Database(String),
Authentication(String),
SessionMismatch(String),
MissingContextToken,
Unauthorized,
UnexpectedlyAuthorized,
NoContent,
InvalidMode,
Conflict(String),
InvalidState(String),
ResourceNotFound {
resource_type: String,
resource_id: String,
},
UserError(UserError),
OAuth2Error(OAuth2Error),
PasskeyError(PasskeyError),
SessionError(SessionError),
UtilsError(UtilError),
InvalidResponseMode(String),
}
Expand description
Errors that can occur during authentication coordination
Variants§
Coordination(String)
General coordination error
Database(String)
Database error
Authentication(String)
Authentication error
SessionMismatch(String)
Session mismatch error - when user in session differs from user in context
MissingContextToken
Missing context token error
Unauthorized access error
UnexpectedlyAuthorized
Unexpectedly authorized access error
NoContent
No content error
InvalidMode
Invalid mode
Conflict(String)
Conflict error
InvalidState(String)
Invalid state error
ResourceNotFound
Resource not found with context
Fields
UserError(UserError)
Error from the user database operations
OAuth2Error(OAuth2Error)
Error from OAuth2 operations
PasskeyError(PasskeyError)
Error from Passkey operations
SessionError(SessionError)
Error from Session operations
UtilsError(UtilError)
Error from utils operations
InvalidResponseMode(String)
Invalid response mode
Implementations§
Trait Implementations§
Source§impl Debug for CoordinationError
impl Debug for CoordinationError
Source§impl Display for CoordinationError
impl Display for CoordinationError
Source§impl Error for CoordinationError
impl Error for CoordinationError
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 From<SessionError> for CoordinationError
impl From<SessionError> for CoordinationError
Source§fn from(err: SessionError) -> Self
fn from(err: SessionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CoordinationError
impl !RefUnwindSafe for CoordinationError
impl Send for CoordinationError
impl Sync for CoordinationError
impl Unpin for CoordinationError
impl !UnwindSafe for CoordinationError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.