#[non_exhaustive]pub enum InstalledMetadataError {
Read {
path: PathBuf,
source: ReadError,
},
View {
path: PathBuf,
source: ViewError,
},
}Expand description
Errors reading a typed view from an installed-package metadata artifact.
The file layer and typed view layer remain separate: callers can inspect whether a failure came from bounded file reading or from validating the decoded metadata object. The artifact path is retained for both variants, including read failures that do not carry a path themselves (for example, a decompression or size-limit error).
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.
Read
Reading the canonical installed metadata artifact failed.
View
The artifact was read, but its decoded object did not match the typed metadata view’s supported schema.
Implementations§
Trait Implementations§
Source§impl Debug for InstalledMetadataError
impl Debug for InstalledMetadataError
Source§impl Display for InstalledMetadataError
impl Display for InstalledMetadataError
Source§impl Error for InstalledMetadataError
impl Error for InstalledMetadataError
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 !RefUnwindSafe for InstalledMetadataError
impl !UnwindSafe for InstalledMetadataError
impl Freeze for InstalledMetadataError
impl Send for InstalledMetadataError
impl Sync for InstalledMetadataError
impl Unpin for InstalledMetadataError
impl UnsafeUnpin for InstalledMetadataError
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