pub struct PackageResolveError(pub Box<PackageResolveErrorKind>);Tuple Fields§
§0: Box<PackageResolveErrorKind>Implementations§
Source§impl PackageResolveError
impl PackageResolveError
pub fn as_kind(&self) -> &PackageResolveErrorKind
pub fn into_kind(self) -> PackageResolveErrorKind
Methods from Deref<Target = PackageResolveErrorKind>§
pub fn as_types_not_found(&self) -> Option<&TypesNotFoundError>
Trait Implementations§
Source§impl Debug for PackageResolveError
impl Debug for PackageResolveError
Source§impl Deref for PackageResolveError
impl Deref for PackageResolveError
Source§impl Display for PackageResolveError
impl Display for PackageResolveError
Source§impl Error for PackageResolveError
impl Error for PackageResolveError
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<E> From<E> for PackageResolveErrorwhere
PackageResolveErrorKind: From<E>,
impl<E> From<E> for PackageResolveErrorwhere
PackageResolveErrorKind: From<E>,
Source§impl From<PackageResolveError> for NodeResolveErrorKind
impl From<PackageResolveError> for NodeResolveErrorKind
Source§fn from(source: PackageResolveError) -> Self
fn from(source: PackageResolveError) -> Self
Converts to this type from the input type.
Source§impl From<PackageResolveError> for PackageTargetResolveErrorKind
impl From<PackageResolveError> for PackageTargetResolveErrorKind
Source§fn from(source: PackageResolveError) -> Self
fn from(source: PackageResolveError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for PackageResolveError
impl JsErrorClass for PackageResolveError
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,
) -> Vec<(Cow<'static, str>, Cow<'static, str>)>
fn get_additional_properties( &self, ) -> Vec<(Cow<'static, str>, Cow<'static, str>)>
Additional properties that should be defined on the error in JavaScript side.
fn as_any(&self) -> &dyn Any
Source§impl NodeJsErrorCoded for PackageResolveError
impl NodeJsErrorCoded for PackageResolveError
fn code(&self) -> NodeJsErrorCode
Auto Trait Implementations§
impl Freeze for PackageResolveError
impl !RefUnwindSafe for PackageResolveError
impl Send for PackageResolveError
impl Sync for PackageResolveError
impl Unpin for PackageResolveError
impl !UnwindSafe for PackageResolveError
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