Enum oci_client::errors::OciDistributionError

source ·
pub enum OciDistributionError {
Show 27 variants AuthenticationFailure(String), ConfigConversionError(String), DigestError(DigestError), GenericError(Option<String>), HeaderValueError(ToStrError), ImageManifestNotFoundError(String), ImageIndexParsingNoPlatformResolverError, IncompatibleLayerMediaTypeError(String), IoError(Error), JsonError(Error), ManifestEncodingError(Utf8Error), 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, }, UrlParseError(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

§

ConfigConversionError(String)

Transparent wrapper around std::string::FromUtf8Error

§

DigestError(DigestError)

An error occurred with a digest operation

§

GenericError(Option<String>)

Generic error, might provide an explanation message

§

HeaderValueError(ToStrError)

Transparent wrapper around reqwest::header::ToStrError

§

ImageManifestNotFoundError(String)

Image manifest not found

§

ImageIndexParsingNoPlatformResolverError

Platform resolver not specified

§

IncompatibleLayerMediaTypeError(String)

Registry returned a layer with an incompatible type

§

IoError(Error)

IO Error

§

JsonError(Error)

Transparent wrapper around serde_json::error::Error

§

ManifestEncodingError(Utf8Error)

Manifest is not valid UTF-8

§

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

Fields

§envelope: OciEnvelope

List of errors returned the by the OCI registry

§url: String

Request URL

§

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

HTTP Server error

Fields

§code: u16

HTTP status code

§url: String

Request URL

§message: String

Error message returned by the remote server

§

SpecViolationError(String)

The OCI distribution spec is not respected by the remote registry

§

UnauthorizedError

HTTP auth failed - user not authorized

Fields

§url: String

request URL

§

UrlParseError(String)

Cannot parse URL

§

UnsupportedMediaTypeError(String)

Media type not supported

§

UnsupportedSchemaVersionError(i32)

Schema version not supported

§

VersionedParsingError(String)

Versioned object: JSON deserialization error

Trait Implementations§

source§

impl Debug for OciDistributionError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for OciDistributionError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for OciDistributionError

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<DigestError> for OciDistributionError

source§

fn from(source: DigestError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for OciDistributionError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for OciDistributionError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for OciDistributionError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ToStrError> for OciDistributionError

source§

fn from(source: ToStrError) -> Self

Converts to this type from the input type.
source§

impl From<Utf8Error> for OciDistributionError

source§

fn from(source: Utf8Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T