pub(crate) struct PackageFailure(Box<dyn StdError + Send + Sync>);Expand description
A failure of a package registry or package publication, kept as its source.
Tuple Fields§
§0: Box<dyn StdError + Send + Sync>Implementations§
Trait Implementations§
Source§impl Debug for PackageFailure
impl Debug for PackageFailure
Source§impl Display for PackageFailure
impl Display for PackageFailure
Source§impl Error for PackageFailure
impl Error for PackageFailure
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<PackageFailure> for PackageError
impl From<PackageFailure> for PackageError
Source§fn from(source: PackageFailure) -> Self
fn from(source: PackageFailure) -> Self
Converts to this type from the input type.
Source§impl From<PackageFailure> for NpmError
impl From<PackageFailure> for NpmError
Source§fn from(source: PackageFailure) -> Self
fn from(source: PackageFailure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PackageFailure
impl !UnwindSafe for PackageFailure
impl Freeze for PackageFailure
impl Send for PackageFailure
impl Sync for PackageFailure
impl Unpin for PackageFailure
impl UnsafeUnpin for PackageFailure
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