pub enum ClusterError {
Show 19 variants
IoError(Error),
UnsupportedVersion(PartialVersion),
UnsupportedRuntime(Version),
VersionError(VersionError),
RuntimeNotFound(PartialVersion),
RuntimeDefaultNotFound,
RuntimeError(RuntimeError),
ClientError(ClientError),
ConfigError(ConfigError),
DataDirNotEmpty(PathBuf, Vec<String>),
InUseElsewhere {
hostname: String,
age: Duration,
},
StaleElsewhere {
hostname: String,
age: Duration,
},
StalePidFile {
pid: u32,
},
ServerStateUnknown {
path: PathBuf,
source: Error,
},
Interrupted,
LockError(Error),
CommandError(Output),
CurrentUserError(CurrentUserError),
UrlError(ParseError),
}Variants§
IoError(Error)
UnsupportedVersion(PartialVersion)
UnsupportedRuntime(Version)
VersionError(VersionError)
RuntimeNotFound(PartialVersion)
RuntimeDefaultNotFound
RuntimeError(RuntimeError)
ClientError(ClientError)
ConfigError(ConfigError)
DataDirNotEmpty(PathBuf, Vec<String>)
InUseElsewhere
StaleElsewhere
StalePidFile
ServerStateUnknown
Interrupted
LockError(Error)
CommandError(Output)
CurrentUserError(CurrentUserError)
UrlError(ParseError)
Implementations§
Source§impl ClusterError
impl ClusterError
Sourcepub fn help(&self) -> Option<String>
pub fn help(&self) -> Option<String>
A suggestion for how to resolve this error, if there is one. This looks
into errors that this wraps too, e.g. a ClientError reported by the
PostgreSQL server, which may include a hint.
Trait Implementations§
Source§impl Debug for ClusterError
impl Debug for ClusterError
Source§impl Display for ClusterError
impl Display for ClusterError
Source§impl Error for ClusterError
impl Error for ClusterError
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<ClientError> for ClusterError
impl From<ClientError> for ClusterError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for ClusterError
impl From<ConfigError> for ClusterError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<CurrentUserError> for ClusterError
impl From<CurrentUserError> for ClusterError
Source§fn from(source: CurrentUserError) -> Self
fn from(source: CurrentUserError) -> Self
Converts to this type from the input type.
Source§impl From<Errno> for ClusterError
impl From<Errno> for ClusterError
Source§impl From<Error> for ClusterError
impl From<Error> for ClusterError
Source§impl From<ParseError> for ClusterError
impl From<ParseError> for ClusterError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for ClusterError
impl From<RuntimeError> for ClusterError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<VersionError> for ClusterError
impl From<VersionError> for ClusterError
Source§fn from(source: VersionError) -> Self
fn from(source: VersionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClusterError
impl !UnwindSafe for ClusterError
impl Forget for ClusterError
impl Freeze for ClusterError
impl Move for ClusterError
impl Send for ClusterError
impl Sync for ClusterError
impl Unpin for ClusterError
impl UnsafeUnpin for ClusterError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more