pub enum EnvRefError {
MissingVar {
name: String,
},
EmptyName,
Unclosed,
}Expand description
Reference errors. fail-closed: a malformed reference is not “treat it as a literal” — it is an error.
Variants§
MissingVar
The environment variable in ${ENV:NAME} is not set. Carries the
variable name, so the error tells the user exactly which one to provide.
EmptyName
${ENV:} (empty name).
Unclosed
${ENV: without a closing }.
Trait Implementations§
Source§impl Clone for EnvRefError
impl Clone for EnvRefError
Source§impl Debug for EnvRefError
impl Debug for EnvRefError
Source§impl Display for EnvRefError
impl Display for EnvRefError
impl Eq for EnvRefError
Source§impl Error for EnvRefError
impl Error for EnvRefError
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 EnvRefError
impl PartialEq for EnvRefError
impl StructuralPartialEq for EnvRefError
Auto Trait Implementations§
impl Forget for EnvRefError
impl Freeze for EnvRefError
impl Move for EnvRefError
impl RefUnwindSafe for EnvRefError
impl Send for EnvRefError
impl Sync for EnvRefError
impl Unpin for EnvRefError
impl UnsafeUnpin for EnvRefError
impl UnwindSafe for EnvRefError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.