Enum postgresql_archive::Error
source · pub enum Error {
AssetNotFound(String),
AssetHashNotFound(String),
ArchiveHashMismatch {
archive_hash: String,
hash: String,
},
InvalidVersion(String),
IoError(Error),
ParseError(Error),
ReleaseNotFound(String),
Unexpected(String),
}
Expand description
PostgreSQL archive errors
Variants§
AssetNotFound(String)
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
ReleaseNotFound(String)
Release not found
Unexpected(String)
Unexpected error
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)>
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
impl From<Error> for Error
Converts a anyhow::Error
into an Unexpected
source§impl From<Error> for Error
impl From<Error> for Error
Converts a regex::Error
into an ParseError
source§impl From<ParseIntError> for Error
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
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.
Auto Trait Implementations§
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