//! Authentication related error types. /// Authentication prompt handler error. #[derive(Debug, thiserror::Error)] pub enum AuthPromptHandlerError { /// Web server failed to bind to a address. #[error("Web server failed to bind to address")] BindAddressFailed, /// Invalid address. #[error("Invalid address")] InvalidAddress, /// Web server failed. #[error("Web server failed")] WebServerFailed(#[from] hyper::Error), /// No authentication code was received. #[error("No authentication code was received")] NoAuthCodeReceived, }