pub enum ConfigError {
InvalidAddress {
value: String,
reason: &'static str,
},
MissingPassword,
DuplicatePassword,
InvalidTemplateText {
variable: String,
},
MissingUpstream,
InvalidUpstream {
value: String,
reason: &'static str,
},
}Expand description
Why a Config could not be built. Surfaced to stderr at startup so a
misconfiguration fails fast with an actionable message.
Variants§
InvalidAddress
MBA_ADDRESS was not a valid non-zero IP socket address.
MissingPassword
No MBA_PASSWORD* variable had a non-empty UTF-8 value.
DuplicatePassword
Two MBA_PASSWORD* variables shared the same value, which would
break independent revocation.
InvalidTemplateText
A configured template-text override was not valid Unicode.
MissingUpstream
MBA_UPSTREAM was unset or empty.
InvalidUpstream
MBA_UPSTREAM was set but is not an absolute HTTP(S) URL.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
impl Eq for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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 PartialEq for ConfigError
impl PartialEq for ConfigError
impl StructuralPartialEq for ConfigError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.