#[non_exhaustive]pub enum ManifestLoadError {
Show 20 variants
WalkDirectory {
path: PathBuf,
source: Error,
},
ReadFile {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: Error,
},
MissingSchemaVersion {
path: PathBuf,
},
UnsupportedSchemaVersion {
path: PathBuf,
found: i64,
expected: u32,
},
NoSpecs {
path: PathBuf,
},
EmptyComponent {
path: PathBuf,
},
InvalidComponentPath {
path: PathBuf,
},
InvalidSpecPath {
path: PathBuf,
},
PathOutsideRepository {
path: PathBuf,
root: PathBuf,
source: OutsideRoot,
},
ResolveComponent {
path: PathBuf,
root: PathBuf,
source: ResolveError,
},
DuplicateComponent {
manifest: PathBuf,
path: PathBuf,
},
UnsupportedSection {
source_path: PathBuf,
section: String,
},
DuplicateKey {
source_path: PathBuf,
section: String,
key: String,
},
InvalidArraySection {
source_path: PathBuf,
section: String,
},
MissingInsertionPoint {
shared: PathBuf,
section: &'static str,
before: String,
},
ConfigurationWithoutSection {
shared: PathBuf,
section: &'static str,
},
ConflictingSectionOrder {
shared: PathBuf,
section: &'static str,
},
InvalidTargetSection {
source_path: PathBuf,
section: String,
},
InvalidPatchTarget {
shared: PathBuf,
section: &'static str,
key: String,
},
}Expand description
Error returned while discovering, reading, composing, or parsing manifests.
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.
WalkDirectory
ReadFile
Parse
MissingSchemaVersion
UnsupportedSchemaVersion
NoSpecs
EmptyComponent
InvalidComponentPath
InvalidSpecPath
PathOutsideRepository
ResolveComponent
DuplicateComponent
UnsupportedSection
DuplicateKey
InvalidArraySection
MissingInsertionPoint
ConfigurationWithoutSection
ConflictingSectionOrder
InvalidTargetSection
InvalidPatchTarget
Trait Implementations§
Source§impl Debug for ManifestLoadError
impl Debug for ManifestLoadError
Source§impl Display for ManifestLoadError
impl Display for ManifestLoadError
Source§impl Error for ManifestLoadError
impl Error for ManifestLoadError
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()
Auto Trait Implementations§
impl Freeze for ManifestLoadError
impl !RefUnwindSafe for ManifestLoadError
impl Send for ManifestLoadError
impl Sync for ManifestLoadError
impl Unpin for ManifestLoadError
impl UnsafeUnpin for ManifestLoadError
impl !UnwindSafe for ManifestLoadError
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more