#[non_exhaustive]pub enum DistError {
InvalidInput(String),
UnsupportedVersion {
found: u32,
},
DuplicateTarget(String),
DuplicateAlias(String),
UnknownTarget(String),
UnknownPlaceholder(String),
MissingInput(String),
InvalidMemberPath(String),
NameCollision {
namespace: NameNamespace,
first: String,
second: String,
},
InvalidReleaseInventory(String),
InvalidArchiveMemberInventory(String),
}Expand description
Typed distribution errors. Parsing never guesses or falls back.
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.
InvalidInput(String)
Input violates the schema contract.
UnsupportedVersion
The document declares an unsupported schema version.
DuplicateTarget(String)
Two targets share a canonical triple.
DuplicateAlias(String)
An alias collides with another alias or triple.
UnknownTarget(String)
No target matches the requested triple or alias.
UnknownPlaceholder(String)
A template contains an unknown placeholder.
MissingInput(String)
A template requires an input that was not supplied.
InvalidMemberPath(String)
An archive member path is unsafe.
NameCollision
Two logical filename fields collide after portable case folding.
Fields
§
namespace: NameNamespaceThe filename namespace that contains the collision.
InvalidReleaseInventory(String)
A caller-supplied flat release inventory is invalid.
InvalidArchiveMemberInventory(String)
A caller-supplied archive-member inventory is invalid.
Trait Implementations§
impl Eq for DistError
Source§impl Error for DistError
impl Error for DistError
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()
impl StructuralPartialEq for DistError
Auto Trait Implementations§
impl Forget for DistError
impl Freeze for DistError
impl Move for DistError
impl RefUnwindSafe for DistError
impl Send for DistError
impl Sync for DistError
impl Unpin for DistError
impl UnsafeUnpin for DistError
impl UnwindSafe for DistError
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
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.