pub enum PackageError {
Show 16 variants
Json(JsoncError),
Path(PathError),
RootMustBeObject,
InvalidField {
field: Arc<str>,
expected: &'static str,
},
InvalidSubpath {
subpath: Arc<str>,
},
InvalidImportSpecifier {
specifier: Arc<str>,
},
InvalidCondition {
condition: Arc<str>,
},
MixedExportsKeys,
InvalidPattern {
pattern: Arc<str>,
},
InvalidTarget {
target: Arc<str>,
},
TargetEscapesPackage {
target: Arc<str>,
},
TargetUsesNodeModules {
target: Arc<str>,
},
SubpathNotExported {
subpath: Arc<str>,
},
ImportNotDefined {
specifier: Arc<str>,
},
TargetBlocked,
NoLegacyEntry,
}Expand description
Package metadata or map resolution failure.
Variants§
Json(JsoncError)
Path(PathError)
RootMustBeObject
InvalidField
InvalidSubpath
InvalidImportSpecifier
InvalidCondition
MixedExportsKeys
InvalidPattern
InvalidTarget
TargetEscapesPackage
TargetUsesNodeModules
SubpathNotExported
ImportNotDefined
TargetBlocked
NoLegacyEntry
Trait Implementations§
Source§impl Clone for PackageError
impl Clone for PackageError
Source§fn clone(&self) -> PackageError
fn clone(&self) -> PackageError
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 PackageError
impl Debug for PackageError
Source§impl Display for PackageError
impl Display for PackageError
impl Eq for PackageError
Source§impl Error for PackageError
impl Error for PackageError
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<JsoncError> for PackageError
impl From<JsoncError> for PackageError
Source§fn from(error: JsoncError) -> Self
fn from(error: JsoncError) -> Self
Converts to this type from the input type.
Source§impl From<PathError> for PackageError
impl From<PathError> for PackageError
Source§impl PartialEq for PackageError
impl PartialEq for PackageError
impl StructuralPartialEq for PackageError
Auto Trait Implementations§
impl Freeze for PackageError
impl RefUnwindSafe for PackageError
impl Send for PackageError
impl Sync for PackageError
impl Unpin for PackageError
impl UnsafeUnpin for PackageError
impl UnwindSafe for PackageError
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