pub enum TargetDetectionError {
NotFound,
InvalidValue(String),
}Expand description
Error when detecting target from the target environment variable.
Variants§
NotFound
The target environment variable was not set.
InvalidValue(String)
The target environment variable had an invalid value.
Trait Implementations§
Source§impl Clone for TargetDetectionError
impl Clone for TargetDetectionError
Source§fn clone(&self) -> TargetDetectionError
fn clone(&self) -> TargetDetectionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetDetectionError
impl Debug for TargetDetectionError
Source§impl Display for TargetDetectionError
impl Display for TargetDetectionError
Source§impl Error for TargetDetectionError
impl Error for TargetDetectionError
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 TargetDetectionError
impl PartialEq for TargetDetectionError
impl Eq for TargetDetectionError
impl StructuralPartialEq for TargetDetectionError
Auto Trait Implementations§
impl Freeze for TargetDetectionError
impl RefUnwindSafe for TargetDetectionError
impl Send for TargetDetectionError
impl Sync for TargetDetectionError
impl Unpin for TargetDetectionError
impl UnwindSafe for TargetDetectionError
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