pub enum ConfigError {
Bootstrap(ConfigBootstrapError),
KeyUnresolved(ConfigKeyUnresolvedError),
Fetch(String),
}Expand description
Unified error type for container mode. Carries the ConfigBootstrapError
and ConfigKeyUnresolvedError variants with their exact fields, plus
auth/network failures surfaced during the initial fetch or a value read.
Variants§
Bootstrap(ConfigBootstrapError)
Container-required env was missing or blank at bootstrap.
KeyUnresolved(ConfigKeyUnresolvedError)
A required key did not resolve across the active tiers.
Fetch(String)
The initial token mint / config fetch failed, or a request errored. Carries the underlying message (auth, network, non-2xx status).
Implementations§
Source§impl ConfigError
impl ConfigError
Sourcepub fn key_unresolved(
key: impl Into<String>,
env: impl Into<String>,
tried_tiers: Vec<ConfigTier>,
) -> Self
pub fn key_unresolved( key: impl Into<String>, env: impl Into<String>, tried_tiers: Vec<ConfigTier>, ) -> Self
Convenience constructor for a ConfigError::KeyUnresolved.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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<ConfigBootstrapError> for ConfigError
impl From<ConfigBootstrapError> for ConfigError
Source§fn from(e: ConfigBootstrapError) -> Self
fn from(e: ConfigBootstrapError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigKeyUnresolvedError> for ConfigError
impl From<ConfigKeyUnresolvedError> for ConfigError
Source§fn from(e: ConfigKeyUnresolvedError) -> Self
fn from(e: ConfigKeyUnresolvedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigError
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
impl UnwindSafe for ConfigError
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