#[non_exhaustive]pub enum ManagedPathError {
NonNormalPath(PathBuf),
OutsideSourceExclusion {
path: PathBuf,
exclusion: PathBuf,
},
CreateDirectory {
path: PathBuf,
source: Error,
},
Inspect {
path: PathBuf,
source: Error,
},
NonDirectory(PathBuf),
NonFile(PathBuf),
FileWithoutParent(PathBuf),
}Expand description
Failure to confine a final-build path beneath its trusted generated-output boundary using only ordinary directories and regular files.
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.
NonNormalPath(PathBuf)
Managed paths must have an unambiguous lexical spelling.
OutsideSourceExclusion
A managed output escaped the source-exclusion boundary.
CreateDirectory
A directory component could not be created.
Inspect
A managed path could not be inspected without following symlinks.
NonDirectory(PathBuf)
Directory traversal encountered a symlink or non-directory.
NonFile(PathBuf)
A content-addressed input/output was a symlink or non-file.
FileWithoutParent(PathBuf)
A file path had no containing directory.
Trait Implementations§
Source§impl Debug for ManagedPathError
impl Debug for ManagedPathError
Source§impl Display for ManagedPathError
impl Display for ManagedPathError
Source§impl Error for ManagedPathError
impl Error for ManagedPathError
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<ManagedPathError> for FinalCargoError
impl From<ManagedPathError> for FinalCargoError
Source§fn from(source: ManagedPathError) -> FinalCargoError
fn from(source: ManagedPathError) -> FinalCargoError
Converts to this type from the input type.
Source§impl From<ManagedPathError> for LinkedCargoError
impl From<ManagedPathError> for LinkedCargoError
Source§fn from(source: ManagedPathError) -> LinkedCargoError
fn from(source: ManagedPathError) -> LinkedCargoError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedPathError
impl !UnwindSafe for ManagedPathError
impl Forget for ManagedPathError
impl Freeze for ManagedPathError
impl Move for ManagedPathError
impl Send for ManagedPathError
impl Sync for ManagedPathError
impl Unpin for ManagedPathError
impl UnsafeUnpin for ManagedPathError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more