pub enum RegistryError {
Network(String),
Registry(String),
Auth(String),
Io(String),
Parse(String),
ImageParsing(String),
Upload(String),
Http(String),
Validation(String),
Cache {
message: String,
path: Option<PathBuf>,
},
NotFound(String),
NotImplemented(String),
}
Variants§
Network(String)
Network related errors
Registry(String)
Registry related errors
Auth(String)
Authentication errors
Io(String)
File IO errors
Parse(String)
Parse errors
ImageParsing(String)
Image parsing errors
Upload(String)
Upload errors
Http(String)
HTTP/Request errors
Validation(String)
Validation errors
Cache
Cache errors
NotFound(String)
Resource not found
NotImplemented(String)
Feature not implemented
Trait Implementations§
Source§impl Clone for RegistryError
impl Clone for RegistryError
Source§fn clone(&self) -> RegistryError
fn clone(&self) -> RegistryError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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
1.30.0 · 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<Error> for RegistryError
impl From<Error> for RegistryError
Source§impl From<FromUtf8Error> for RegistryError
impl From<FromUtf8Error> for RegistryError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for RegistryError
impl From<ParseError> for RegistryError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.