pub enum OciDistributionError {
Show 23 variants
AuthenticationFailure(String),
GenericError(Option<String>),
HeaderValueError(ToStrError),
IoError(Error),
ImageIndexParsingNoPlatformResolverError,
ImageManifestNotFoundError(String),
IncompatibleLayerMediaTypeError(String),
JsonError(Error),
ManifestParsingError(String),
PushNoDataError,
PushLayerNoDataError,
PullNoLayersError,
RegistryError {
envelope: OciEnvelope,
url: String,
},
RegistryNoDigestError,
RegistryNoLocationError,
RegistryTokenDecodeError(String),
RequestError(Error),
ServerError {
code: u16,
url: String,
message: String,
},
SpecViolationError(String),
UnauthorizedError {
url: String,
},
UnsupportedMediaTypeError(String),
UnsupportedSchemaVersionError(i32),
VersionedParsingError(String),
}Expand description
Errors that can be raised while interacting with an OCI registry
Variants
AuthenticationFailure(String)
Authentication error
GenericError(Option<String>)
Generic error, might provide an explanation message
HeaderValueError(ToStrError)
Transparent wrapper around reqwest::header::ToStrError
IoError(Error)
IO Error
ImageIndexParsingNoPlatformResolverError
Platform resolver not specified
ImageManifestNotFoundError(String)
Image manifest not found
IncompatibleLayerMediaTypeError(String)
Registry returned a layer with an incompatible type
JsonError(Error)
Transparent wrapper around serde_json::error::Error
ManifestParsingError(String)
Manifest: JSON unmarshalling error
PushNoDataError
Cannot push a blob without data
PushLayerNoDataError
Cannot push layer object without data
PullNoLayersError
No layers available to be pulled
RegistryError
OCI registry error
RegistryNoDigestError
Registry didn’t return a Digest object
RegistryNoLocationError
Registry didn’t return a Location header
RegistryTokenDecodeError(String)
Registry token: JSON deserialization error
RequestError(Error)
Transparent wrapper around reqwest::Error
ServerError
Fields
code: u16HTTP status code
url: StringRequest URL
message: StringError message returned by the remote server
HTTP Server error
SpecViolationError(String)
The OCI distribution spec is not respected by the remote registry
UnauthorizedError
Fields
request URL
HTTP auth failed - user not authorized
UnsupportedMediaTypeError(String)
Media type not supported
UnsupportedSchemaVersionError(i32)
Schema version not supported
VersionedParsingError(String)
Versioned object: JSON deserialization error
Trait Implementations
sourceimpl Debug for OciDistributionError
impl Debug for OciDistributionError
sourceimpl Display for OciDistributionError
impl Display for OciDistributionError
sourceimpl Error for OciDistributionError
impl Error for OciDistributionError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for OciDistributionError
impl From<Error> for OciDistributionError
sourceimpl From<Error> for OciDistributionError
impl From<Error> for OciDistributionError
sourceimpl From<Error> for OciDistributionError
impl From<Error> for OciDistributionError
sourceimpl From<ToStrError> for OciDistributionError
impl From<ToStrError> for OciDistributionError
sourcefn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for OciDistributionError
impl Send for OciDistributionError
impl Sync for OciDistributionError
impl Unpin for OciDistributionError
impl !UnwindSafe for OciDistributionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more