Struct release_utils::VarError
source · pub struct VarError {
pub name: String,
pub err: VarError,
}Expand description
Error getting an environment variable
Wrapper around std::env::VarError that adds the name of the
variable. This provides a more useful error message.
Fields§
§name: StringName of the environment variable.
err: VarErrorThe underlying error.
Trait Implementations§
source§impl Error for VarError
impl Error for VarError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 VarError
impl PartialEq for VarError
impl StructuralPartialEq for VarError
Auto Trait Implementations§
impl RefUnwindSafe for VarError
impl Send for VarError
impl Sync for VarError
impl Unpin for VarError
impl UnwindSafe for VarError
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