#[non_exhaustive]pub enum TargetError {
NotFound {
dir: Utf8PathBuf,
},
Nested {
dir: Utf8PathBuf,
root: Utf8PathBuf,
},
DuplicateLayer {
layer: String,
},
NoSuchLayer {
name: String,
layers: Vec<String>,
},
NotManaged {
path: String,
managed: Vec<RelPath>,
},
Required {
name: String,
by: String,
},
StaleOverride {
path: RelPath,
provided: Vec<RelPath>,
},
NotAFile {
path: RelPath,
kind: &'static str,
},
Busy,
Concurrent,
}Expand description
Why a target cannot be found, read or written.
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.
NotFound
No directory from here up holds .devset/config.toml.
Fields
§
dir: Utf8PathBufWhere the search began.
Nested
A new target would lie inside another.
DuplicateLayer
config.toml already lists the layer.
NoSuchLayer
No layer’s profile has the name asked for.
NotManaged
A path named on the command line is not a file devset manages.
Required
A layer named where only a configured one will do is one another profile requires.
StaleOverride
config.toml overrides a path no layer provides.
NotAFile
A managed path on disk is a symlink, a directory or a special file.
Fields
Busy
Another devset holds the target’s lock.
Concurrent
state.toml changed while this devset ran.
Trait Implementations§
Source§impl Clone for TargetError
impl Clone for TargetError
Source§impl Debug for TargetError
impl Debug for TargetError
Source§impl Display for TargetError
impl Display for TargetError
impl Eq for TargetError
Source§impl Error for TargetError
impl Error for TargetError
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<TargetError> for Error
impl From<TargetError> for Error
Source§fn from(source: TargetError) -> Self
fn from(source: TargetError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TargetError
impl PartialEq for TargetError
impl StructuralPartialEq for TargetError
Auto Trait Implementations§
impl Freeze for TargetError
impl RefUnwindSafe for TargetError
impl Send for TargetError
impl Sync for TargetError
impl Unpin for TargetError
impl UnsafeUnpin for TargetError
impl UnwindSafe for TargetError
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.