Enum clio_auth::ServerError
source · pub enum ServerError {
IoError(Error),
AsyncRuntimeRequired(TryCurrentError),
InternalCommError(SendError<ServerControl>),
InternalServerError(JoinError),
RequestError(Error),
EncodingError(FromUtf8Error),
NoResult,
}
Expand description
Errors that can occur from the internal web server during the OAuth flow.
Variants§
IoError(Error)
AsyncRuntimeRequired(TryCurrentError)
The Tokio runtime could not be found
InternalCommError(SendError<ServerControl>)
Error sending a signal to the internal server
InternalServerError(JoinError)
Problem occurred running the server
RequestError(Error)
EncodingError(FromUtf8Error)
NoResult
No authorization code was received
Trait Implementations§
source§impl Debug for ServerError
impl Debug for ServerError
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
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<Error> for ServerError
impl From<Error> for ServerError
source§impl From<Error> for ServerError
impl From<Error> for ServerError
source§impl From<FromUtf8Error> for ServerError
impl From<FromUtf8Error> for ServerError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<JoinError> for ServerError
impl From<JoinError> for ServerError
source§impl From<SendError<ServerControl>> for ServerError
impl From<SendError<ServerControl>> for ServerError
source§impl From<TryCurrentError> for ServerError
impl From<TryCurrentError> for ServerError
source§fn from(source: TryCurrentError) -> Self
fn from(source: TryCurrentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
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