pub enum PachaError {
Show 20 variants
Database(Error),
Io(Error),
Json(Error),
TomlDeserialize(Error),
TomlSerialize(Error),
MessagePack(String),
NotFound {
kind: String,
name: String,
version: String,
},
AlreadyExists {
kind: String,
name: String,
version: String,
},
InvalidVersion(String),
HashMismatch {
expected: String,
actual: String,
},
StoragePath(PathBuf),
Compression(String),
InvalidStageTransition {
from: String,
to: String,
},
Validation(String),
NotInitialized(PathBuf),
InvalidUri(String),
UnsupportedOperation {
operation: String,
reason: String,
},
SignatureInvalid,
RemoteRegistry(String),
InvalidFormat(String),
}Expand description
Errors that can occur during Pacha registry operations.
Variants§
Database(Error)
Database operation failed.
Io(Error)
IO operation failed.
Json(Error)
JSON serialization/deserialization failed.
TomlDeserialize(Error)
TOML serialization/deserialization failed.
TomlSerialize(Error)
TOML serialization failed.
MessagePack(String)
MessagePack serialization/deserialization failed.
NotFound
Artifact not found.
Fields
AlreadyExists
Artifact already exists.
Fields
InvalidVersion(String)
Invalid version string.
HashMismatch
Content hash mismatch.
StoragePath(PathBuf)
Storage path error.
Compression(String)
Compression error.
InvalidStageTransition
Invalid artifact state transition.
Validation(String)
Validation error.
NotInitialized(PathBuf)
Registry not initialized.
InvalidUri(String)
Invalid URI format.
UnsupportedOperation
Operation not supported.
SignatureInvalid
Signature verification failed.
RemoteRegistry(String)
Remote registry error.
InvalidFormat(String)
Invalid format (encryption, file structure).
Trait Implementations§
Source§impl Debug for PachaError
impl Debug for PachaError
Source§impl Display for PachaError
impl Display for PachaError
Source§impl Error for PachaError
impl Error for PachaError
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 PachaError
impl From<Error> for PachaError
Source§impl From<Error> for PachaError
impl From<Error> for PachaError
Source§impl From<Error> for PachaError
impl From<Error> for PachaError
Source§impl From<Error> for PachaError
impl From<Error> for PachaError
Auto Trait Implementations§
impl !RefUnwindSafe for PachaError
impl !UnwindSafe for PachaError
impl Freeze for PachaError
impl Send for PachaError
impl Sync for PachaError
impl Unpin for PachaError
impl UnsafeUnpin for PachaError
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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.