#[non_exhaustive]pub enum VcsEnvError {
NonUtf8 {
var: &'static str,
value: OsString,
},
}Expand description
An error from reading a VCS binary path from the environment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonUtf8
The environment variable is set but is not valid UTF-8.
Trait Implementations§
Source§impl Debug for VcsEnvError
impl Debug for VcsEnvError
Source§impl Display for VcsEnvError
impl Display for VcsEnvError
Source§impl Error for VcsEnvError
impl Error for VcsEnvError
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 From<VcsEnvError> for VcsDetectError
impl From<VcsEnvError> for VcsDetectError
Source§fn from(source: VcsEnvError) -> Self
fn from(source: VcsEnvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VcsEnvError
impl RefUnwindSafe for VcsEnvError
impl Send for VcsEnvError
impl Sync for VcsEnvError
impl Unpin for VcsEnvError
impl UnsafeUnpin for VcsEnvError
impl UnwindSafe for VcsEnvError
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