pub enum RegistryError {
NotFound,
PermissionDenied(MissingPermission),
Storage(Error),
ParseManifest(Error),
NotSupported(&'static str),
ContentLengthMalformed(Box<dyn Error + Send + Sync>),
IncomingReadFailed(Error),
LocalWriteFailed(Error),
AxumHttp(Error),
}
Expand description
A container registry error.
Errors produced by the registry have a “safe” IntoResponse
implementation, thus can be
returned straight to the user without security concerns.
Variants§
NotFound
A requested item (eg. manifest, blob, etc.) was not found.
PermissionDenied(MissingPermission)
Access to a resource was denied.
Storage(Error)
Error in storage backend.
ParseManifest(Error)
Error parsing image manifest.
NotSupported(&'static str)
A requested/required feature was not supported by this registry.
ContentLengthMalformed(Box<dyn Error + Send + Sync>)
Invalid integer supplied for content length.
IncomingReadFailed(Error)
Incoming stream read error.
LocalWriteFailed(Error)
Failed to write local data to storage.
AxumHttp(Error)
Error building HTTP response.
Trait Implementations§
Source§impl Debug for RegistryError
impl Debug for RegistryError
Source§impl Display for RegistryError
impl Display for RegistryError
Source§impl Error for RegistryError
impl Error for RegistryError
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 RegistryError
impl From<Error> for RegistryError
Source§impl From<Error> for RegistryError
impl From<Error> for RegistryError
Source§impl From<MissingPermission> for RegistryError
impl From<MissingPermission> for RegistryError
Source§fn from(source: MissingPermission) -> Self
fn from(source: MissingPermission) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for RegistryError
impl IntoResponse for RegistryError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for RegistryError
impl !RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl !UnwindSafe for RegistryError
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