pub enum NpmResolutionError {
Registry(NpmRegistryPackageInfoLoadError),
Resolution(NpmPackageVersionResolutionError),
DependencyEntry(Box<NpmDependencyEntryError>),
}
Variants§
Registry(NpmRegistryPackageInfoLoadError)
Resolution(NpmPackageVersionResolutionError)
DependencyEntry(Box<NpmDependencyEntryError>)
Trait Implementations§
Source§impl Clone for NpmResolutionError
impl Clone for NpmResolutionError
Source§fn clone(&self) -> NpmResolutionError
fn clone(&self) -> NpmResolutionError
Returns a duplicate of the value. Read more
1.0.0 · 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 NpmResolutionError
impl Debug for NpmResolutionError
Source§impl Display for NpmResolutionError
impl Display for NpmResolutionError
Source§impl Error for NpmResolutionError
impl Error for NpmResolutionError
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<Box<NpmDependencyEntryError>> for NpmResolutionError
impl From<Box<NpmDependencyEntryError>> for NpmResolutionError
Source§fn from(source: Box<NpmDependencyEntryError>) -> Self
fn from(source: Box<NpmDependencyEntryError>) -> Self
Converts to this type from the input type.
Source§impl From<NpmPackageVersionResolutionError> for NpmResolutionError
impl From<NpmPackageVersionResolutionError> for NpmResolutionError
Source§fn from(source: NpmPackageVersionResolutionError) -> Self
fn from(source: NpmPackageVersionResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<NpmRegistryPackageInfoLoadError> for NpmResolutionError
impl From<NpmRegistryPackageInfoLoadError> for NpmResolutionError
Source§fn from(source: NpmRegistryPackageInfoLoadError) -> Self
fn from(source: NpmRegistryPackageInfoLoadError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for NpmResolutionError
impl JsErrorClass for NpmResolutionError
Source§fn get_message(&self) -> Cow<'static, str>
fn get_message(&self) -> Cow<'static, str>
Represents the error message used in JavaScript side.
Source§fn get_additional_properties(&self) -> AdditionalProperties
fn get_additional_properties(&self) -> AdditionalProperties
Additional properties that should be defined on the error in JavaScript side.
fn get_ref(&self) -> &(dyn Error + Send + Sync + 'static)
Auto Trait Implementations§
impl Freeze for NpmResolutionError
impl !RefUnwindSafe for NpmResolutionError
impl Send for NpmResolutionError
impl Sync for NpmResolutionError
impl Unpin for NpmResolutionError
impl !UnwindSafe for NpmResolutionError
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