pub enum Error {
Show 15 variants
Ssh(Error),
SshExecution {
message: String,
command: String,
},
Installation(String),
Configuration(String),
NotInstalled,
AlreadyInstalled(String),
InvalidVersion(String),
InvalidConfig {
parameter: String,
value: String,
},
MissingConfig(String),
ServiceError(String),
ConnectionTest(String),
Uninstallation(String),
Io(Error),
Serialization(Error),
Other(String),
}Expand description
Error types for PostgreSQL Manager operations
Variants§
Ssh(Error)
SSH error
SshExecution
SSH command execution error
Installation(String)
PostgreSQL installation error
Configuration(String)
PostgreSQL configuration error
NotInstalled
PostgreSQL not installed
AlreadyInstalled(String)
PostgreSQL already installed
InvalidVersion(String)
Invalid PostgreSQL version
InvalidConfig
Invalid configuration parameter
MissingConfig(String)
Missing required configuration
ServiceError(String)
PostgreSQL service error
ConnectionTest(String)
Database connection test failed
Uninstallation(String)
Uninstallation error
Io(Error)
IO error
Serialization(Error)
Serialization error
Other(String)
Generic error
Implementations§
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()
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