pub enum IdentityError {
InvalidCrateName(String),
InvalidCMetadata(String),
InvalidTarget(String),
InvalidCrateVersion(String),
InvalidRustcVersion(String),
InvalidFeatureName(String),
UnsortedFeatures,
InvalidEmitEntry(String),
UnsortedEmit,
InvalidJsonWrapper(String),
UnsortedDependencyIdentities,
}Expand description
Errors produced while parsing wire identity values.
Variants§
InvalidCrateName(String)
The crate name violates crates.io’s allowed character / length rules.
InvalidCMetadata(String)
The cargo -C metadata value is not a hex hash of length 1..=64.
InvalidTarget(String)
The target triple has unexpected characters or length.
InvalidCrateVersion(String)
The crate version is not semver.
InvalidRustcVersion(String)
The rustc version string failed shape validation.
InvalidFeatureName(String)
One feature name is empty, too long, or contains invalid characters.
UnsortedFeatures
A feature list was not strictly sorted and deduplicated.
InvalidEmitEntry(String)
An emit entry is empty, too long, or contains invalid characters.
UnsortedEmit
An emit list was not strictly sorted and deduplicated.
InvalidJsonWrapper(String)
Failed to parse a JSON wrapper string.
UnsortedDependencyIdentities
Dependency identities not sorted by (crate_name, c_metadata).
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for IdentityError
impl RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnsafeUnpin for IdentityError
impl UnwindSafe for IdentityError
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