pub enum ImageError {
Registry(OciDistributionError),
PlatformNotFound {
reference: String,
os: String,
arch: String,
},
ManifestParse(String),
ConfigParse(String),
DigestMismatch {
digest: String,
expected: String,
actual: String,
},
Extraction {
digest: String,
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
IndexBuild(String, Error),
Cache {
path: PathBuf,
source: Error,
},
NotCached {
reference: String,
},
Io(Error),
}Expand description
Errors that can occur during image operations.
Variants§
Registry(OciDistributionError)
Network or registry communication error.
PlatformNotFound
No manifest found matching the requested platform.
Fields
ManifestParse(String)
OCI manifest or index parsing failed.
ConfigParse(String)
OCI image config parsing failed.
DigestMismatch
Layer download hash mismatch (possible corruption or tampering).
Fields
Extraction
Layer extraction failed.
Fields
IndexBuild(String, Error)
Sidecar index generation failed.
Cache
Cache I/O error.
NotCached
Image not found in local cache (PullPolicy::Never).
Io(Error)
General I/O error.
Trait Implementations§
Source§impl Debug for ImageError
impl Debug for ImageError
Source§impl Display for ImageError
impl Display for ImageError
Source§impl Error for ImageError
impl Error for ImageError
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<Error> for ImageError
impl From<Error> for ImageError
Source§impl From<OciDistributionError> for ImageError
impl From<OciDistributionError> for ImageError
Source§fn from(source: OciDistributionError) -> Self
fn from(source: OciDistributionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageError
impl !RefUnwindSafe for ImageError
impl Send for ImageError
impl Sync for ImageError
impl Unpin for ImageError
impl UnsafeUnpin for ImageError
impl !UnwindSafe for ImageError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.