#[non_exhaustive]pub enum LoadErrorKind {
Show 22 variants
GitIo {
operation: &'static str,
source: Error,
},
Storage(StorageError),
Locked {
field: &'static str,
message: String,
source: Option<Box<TomlError>>,
},
Graph(GraphError),
Tree(Box<TreeError>),
Budget {
budget: Budget,
limit: usize,
},
Syntax {
message: String,
column: usize,
},
Spawn(Error),
Registry {
first: String,
},
Manifest {
message: String,
source: Option<Box<TomlError>>,
},
Target(Box<TargetProblem>),
DirSymlink,
NoRoots,
UnresolvedMod {
module: String,
},
BothModFiles {
module: String,
first: Box<RelPath>,
second: Box<RelPath>,
},
DuplicatePathAttr {
module: String,
},
ModuleCycle {
module: String,
again: Box<RelPath>,
},
CfgParse {
message: String,
},
UnsupportedItem {
what: String,
},
UnresolvedTrait {
path: String,
},
Internal {
what: String,
},
SuperAboveRoot {
path: String,
},
}Expand description
What went wrong while loading a file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GitIo
Native Git repository or object access failed.
Fields
Storage(StorageError)
Native storage refused a physical layout or allocation.
Locked
The locked package/edge profile is malformed, unsupported or ambiguous.
Fields
Graph(GraphError)
A native graph operation refused invalid topology or physical storage.
Tree(Box<TreeError>)
The tree refused or failed the file.
Budget
The file exceeds a recursion budget of the pre-scan.
Syntax
syn could not parse the file.
Fields
Spawn(Error)
The thread that parses could not be started (the operating system refused the stack or the thread).
Registry
The parse worker’s native source registry was not fresh at entry, so its admitted storage bounds do not hold.
Manifest
A Cargo.toml could not be read as a manifest.
Fields
Target(Box<TargetProblem>)
A target is wrong in a way the manifest keys explain.
DirSymlink
A directory entry that discovery would have entered is a symlink.
NoRoots
The load was given no roots, so there is nothing to discover.
UnresolvedMod
A mod name; names no file.
BothModFiles
Both name.rs and name/mod.rs exist for a module.
Fields
DuplicatePathAttr
A module has two path attributes that apply unconditionally.
ModuleCycle
A module leads back to a file that is still being followed.
Fields
CfgParse
A cfg, cfg_attr, path or test attribute could not be read: it
has the wrong shape, its predicate cannot be read, or the value of a
path is not a string literal.
UnsupportedItem
The file holds an item that the index does not model.
UnresolvedTrait
The trait of an impl block cannot be named by an absolute path.
Internal
An invariant of the index does not hold. This is a bug in the crate, reported and not guessed around.
SuperAboveRoot
A path climbs above the crate root with super.
Trait Implementations§
Source§impl Debug for LoadErrorKind
impl Debug for LoadErrorKind
Auto Trait Implementations§
impl !RefUnwindSafe for LoadErrorKind
impl !UnwindSafe for LoadErrorKind
impl Forget for LoadErrorKind
impl Freeze for LoadErrorKind
impl Move for LoadErrorKind
impl Send for LoadErrorKind
impl Sync for LoadErrorKind
impl Unpin for LoadErrorKind
impl UnsafeUnpin for LoadErrorKind
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
impl<T> EvidenceLease for T
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> ⓘ
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> ⓘ
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