#[non_exhaustive]pub enum GatewayConfigError {
MissingEnv(String),
InvalidEnv(String),
InvalidConfig(String),
Config {
message: String,
source: Box<dyn Error + Send + Sync>,
},
}Expand description
The error returned when setting up the gateway client fails because an environment variable, the bearer key, or the endpoint URL is missing or unusable.
This is a setup error. It happens before the client sends its first
request, so it stays within client setup, separate from the Engine and
its CompletionErrorKind values. The
message names the environment variable or the rule that failed, and never
contains a key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingEnv(String)
A required environment variable was missing.
InvalidEnv(String)
An environment variable was set, but its value was invalid Unicode.
InvalidConfig(String)
A configuration value failed validation.
Config
A configuration input was invalid, and the error keeps the concrete
cause as its source.
The cause is, for example, a URL parse failure or an unusable secret.
Trait Implementations§
Source§impl Debug for GatewayConfigError
impl Debug for GatewayConfigError
Source§impl Display for GatewayConfigError
impl Display for GatewayConfigError
Source§impl Error for GatewayConfigError
impl Error for GatewayConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<SecretError> for GatewayConfigError
impl From<SecretError> for GatewayConfigError
Source§fn from(error: SecretError) -> GatewayConfigError
fn from(error: SecretError) -> GatewayConfigError
Auto Trait Implementations§
impl !RefUnwindSafe for GatewayConfigError
impl !UnwindSafe for GatewayConfigError
impl Freeze for GatewayConfigError
impl Send for GatewayConfigError
impl Sync for GatewayConfigError
impl Unpin for GatewayConfigError
impl UnsafeUnpin for GatewayConfigError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 more