pub enum WorkspaceLoadError {
MalformedRootPackageJson {
path: PathBuf,
error: String,
},
}Expand description
Workspace-discovery failures that prevent analysis from proceeding.
Returned only by discover_workspaces_with_diagnostics (in the parent
module) when the root package.json itself is malformed: without a
parseable root, no workspace patterns can be collected, and analysis
output would be fiction. The CLI surfaces this as exit 2.
Variants§
MalformedRootPackageJson
The project root’s package.json exists but failed to parse.
Trait Implementations§
Source§impl Clone for WorkspaceLoadError
impl Clone for WorkspaceLoadError
Source§fn clone(&self) -> WorkspaceLoadError
fn clone(&self) -> WorkspaceLoadError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceLoadError
impl Debug for WorkspaceLoadError
Source§impl Display for WorkspaceLoadError
impl Display for WorkspaceLoadError
Source§impl Error for WorkspaceLoadError
impl Error for WorkspaceLoadError
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()
Auto Trait Implementations§
impl Freeze for WorkspaceLoadError
impl RefUnwindSafe for WorkspaceLoadError
impl Send for WorkspaceLoadError
impl Sync for WorkspaceLoadError
impl Unpin for WorkspaceLoadError
impl UnsafeUnpin for WorkspaceLoadError
impl UnwindSafe for WorkspaceLoadError
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