pub enum Error {
Show 14 variants
AssetNotFound,
AssetHashNotFound(String),
ArchiveHashMismatch {
archive_hash: String,
hash: String,
},
InvalidVersion(String),
IoError(Error),
ParseError(Error),
PoisonedLock(String),
RepositoryFailure(String),
Unexpected(String),
UnsupportedExtractor(String),
UnsupportedHasher(String),
UnsupportedMatcher(String),
UnsupportedRepository(String),
VersionNotFound(String),
}
Expand description
PostgreSQL archive errors
Variants§
AssetNotFound
Asset not found
AssetHashNotFound(String)
Asset hash not found
ArchiveHashMismatch
Error when the hash of the archive does not match the expected hash
InvalidVersion(String)
Invalid version
IoError(Error)
IO error
ParseError(Error)
Parse error
PoisonedLock(String)
Poisoned lock
RepositoryFailure(String)
Repository failure
Unexpected(String)
Unexpected error
UnsupportedExtractor(String)
Unsupported extractor
UnsupportedHasher(String)
Unsupported hasher
UnsupportedMatcher(String)
Unsupported hasher
UnsupportedRepository(String)
Unsupported repository
VersionNotFound(String)
Version not found
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
Converts a regex::Error
into an ParseError
impl From<Error> for Error
Converts a regex::Error
into an ParseError
Source§impl From<Error> for Error
Converts a semver::Error
into an ParseError
impl From<Error> for Error
Converts a semver::Error
into an ParseError
Source§impl From<Error> for Error
Converts a anyhow::Error
into an Unexpected
impl From<Error> for Error
Converts a anyhow::Error
into an Unexpected
Source§impl From<ParseError> for Error
Converts a url::ParseError
into an ParseError
impl From<ParseError> for Error
Converts a url::ParseError
into an ParseError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
Converts a std::num::ParseIntError
into an ParseError
impl From<ParseIntError> for Error
Converts a std::num::ParseIntError
into an ParseError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for Error
Converts a std::path::StripPrefixError
into an ParseError
impl From<StripPrefixError> for Error
Converts a std::path::StripPrefixError
into an ParseError
Source§fn from(error: StripPrefixError) -> Self
fn from(error: StripPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for Error
Converts a std::time::SystemTimeError
into an IoError
impl From<SystemTimeError> for Error
Converts a std::time::SystemTimeError
into an IoError
Source§fn from(error: SystemTimeError) -> Self
fn from(error: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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