#[non_exhaustive]pub enum PackageManifestError {
UnsupportedPath(String),
Malformed {
path: String,
message: String,
},
LimitExceeded(ExtractionLimitExceeded),
}Expand description
Failure to recognize or safely parse a package manifest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedPath(String)
The supplied path is not a supported repository-relative package manifest path.
Malformed
A supported structured file is malformed or contains an invalid static declaration.
LimitExceeded(ExtractionLimitExceeded)
Extraction exceeded one configured invocation resource.
Trait Implementations§
Source§impl Clone for PackageManifestError
impl Clone for PackageManifestError
Source§fn clone(&self) -> PackageManifestError
fn clone(&self) -> PackageManifestError
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 PackageManifestError
impl Debug for PackageManifestError
Source§impl Display for PackageManifestError
impl Display for PackageManifestError
impl Eq for PackageManifestError
Source§impl Error for PackageManifestError
impl Error for PackageManifestError
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<ExtractionLimitExceeded> for PackageManifestError
impl From<ExtractionLimitExceeded> for PackageManifestError
Source§fn from(error: ExtractionLimitExceeded) -> Self
fn from(error: ExtractionLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackageManifestError
impl PartialEq for PackageManifestError
impl StructuralPartialEq for PackageManifestError
Auto Trait Implementations§
impl Freeze for PackageManifestError
impl RefUnwindSafe for PackageManifestError
impl Send for PackageManifestError
impl Sync for PackageManifestError
impl Unpin for PackageManifestError
impl UnsafeUnpin for PackageManifestError
impl UnwindSafe for PackageManifestError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.