#[non_exhaustive]pub enum ArtifactIdError {
FailedToOpenFileForId {
path: Box<str>,
source: Box<Error>,
},
FailedRead(Box<Error>),
FailedSeek(SeekFrom, Box<Error>),
FailedCheckReaderPos(Box<Error>),
InvalidScheme(Box<str>),
MissingObjectType(Box<str>),
MissingHashAlgorithm(Box<str>),
MissingHash(Box<str>),
MismatchedObjectType {
expected: Box<str>,
got: Box<str>,
},
MismatchedHashAlgorithm {
expected: Box<str>,
got: Box<str>,
},
InvalidHex(Box<str>, Box<FromHexError>),
FailedToParseUrl(Box<str>, Box<ParseError>),
}
Expand description
An error arising from Artifact ID operations.
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.
FailedToOpenFileForId
Failed to open file for identification.
Fields
FailedRead(Box<Error>)
Failed to asynchronously read the reader.
FailedSeek(SeekFrom, Box<Error>)
Failed to reset reader back to the start.
FailedCheckReaderPos(Box<Error>)
Failed to check reader position.
InvalidScheme(Box<str>)
Invalid scheme in URL.
MissingObjectType(Box<str>)
Missing object type in URL.
MissingHashAlgorithm(Box<str>)
Missing hash algorithm in URL.
MissingHash(Box<str>)
Missing hash in URL.
MismatchedObjectType
Mismatched object type.
MismatchedHashAlgorithm
Mismatched hash algorithm.
InvalidHex(Box<str>, Box<FromHexError>)
Invalid hex string.
FailedToParseUrl(Box<str>, Box<ParseError>)
URL for Artifact ID is not a valid URL
Trait Implementations§
Source§impl Debug for ArtifactIdError
impl Debug for ArtifactIdError
Source§impl Display for ArtifactIdError
impl Display for ArtifactIdError
Source§impl Error for ArtifactIdError
impl Error for ArtifactIdError
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<ArtifactIdError> for InputManifestError
impl From<ArtifactIdError> for InputManifestError
Source§fn from(source: ArtifactIdError) -> Self
fn from(source: ArtifactIdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArtifactIdError
impl !RefUnwindSafe for ArtifactIdError
impl Send for ArtifactIdError
impl Sync for ArtifactIdError
impl Unpin for ArtifactIdError
impl !UnwindSafe for ArtifactIdError
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