pub enum TmpPostgrustError {
Show 14 variants
ExecSubprocessFailed {
source: Error,
command: String,
},
SpawnSubprocessFailed(Error),
InitDBFailed(ProcessCapture),
CopyCachedInitDBFailedFileNotFound(Error),
CopyCachedInitDBFailedCouldNotReadFileType(Error),
CopyCachedInitDBFailedCouldNotStripPathPrefix(StripPrefixError),
CreateDBFailed(ProcessCapture),
CreateConfigFailed(Error),
EmptyDataDirectory,
CreateSocketDirFailed(Error),
CreateCacheDirFailed(Error),
CreateDataDirFailed(Error),
UpdatingPermissionsFailed(ProcessCapture),
MigrationsFailed(Box<dyn Error + Send + Sync>),
}
Expand description
Error type for possible postgresql errors.
Variants§
ExecSubprocessFailed
Catchall error for when a subprocess fails to run to completion
Fields
SpawnSubprocessFailed(Error)
Catchall error for when a subprocess fails to start
InitDBFailed(ProcessCapture)
Error when initdb
fails to execute.
CopyCachedInitDBFailedFileNotFound(Error)
Error when a file to be copied is not found.
CopyCachedInitDBFailedCouldNotReadFileType(Error)
Error when the file type cannot be read when copying the cached db.
CopyCachedInitDBFailedCouldNotStripPathPrefix(StripPrefixError)
Error when the source directory filepath cannot be stripped.
CreateDBFailed(ProcessCapture)
Error when createdb
fails to execute.
CreateConfigFailed(Error)
Error when postgresql.conf
cannot be written.
EmptyDataDirectory
Error when the PGDATA directory is empty.
CreateSocketDirFailed(Error)
Error when the temporary unix socket directory cannot be created.
CreateCacheDirFailed(Error)
Error when the cache directory cannot be created.
CreateDataDirFailed(Error)
Error when the data directory cannot be created.
UpdatingPermissionsFailed(ProcessCapture)
Error when cp
fails for the initialized database.
MigrationsFailed(Box<dyn Error + Send + Sync>)
Error when running migrations failed.
Trait Implementations§
Source§impl Debug for TmpPostgrustError
impl Debug for TmpPostgrustError
Source§impl Display for TmpPostgrustError
impl Display for TmpPostgrustError
Source§impl Error for TmpPostgrustError
impl Error for TmpPostgrustError
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 TmpPostgrustError
impl !RefUnwindSafe for TmpPostgrustError
impl Send for TmpPostgrustError
impl Sync for TmpPostgrustError
impl Unpin for TmpPostgrustError
impl !UnwindSafe for TmpPostgrustError
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
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> 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