Enum tmp_postgrust::errors::TmpPostgrustError[][src]

pub enum TmpPostgrustError {
    ExecSubprocessFailed {
        source: Error,
        command: String,
    },
    SpawnSubprocessFailed(Error),
    InitDBFailed(ProcessCapture),
    CopyCachedInitDBFailed(ProcessCapture),
    CopyCachedInitDBFailedFileNotFound(Error),
    CreateDBFailed(ProcessCapture),
    CreateConfigFailed(Error),
    EmptyDataDirectory,
    CreateSocketDirFailed(Error),
    CreateCacheDirFailed(Error),
}
Expand description

Error type for possible postgresql errors.

Variants

ExecSubprocessFailed

Catchall error for when a subprocess fails to run to completion

Fields of ExecSubprocessFailed

source: Error

Underlying I/O Error.

command: String

Debug formatted string of Command that was attempted.

SpawnSubprocessFailed

Catchall error for when a subprocess fails to start

Tuple Fields of SpawnSubprocessFailed

0: Error
InitDBFailed

Error when initdb fails to execute.

Tuple Fields of InitDBFailed

0: ProcessCapture
CopyCachedInitDBFailed

Error when cp fails for the initialized database.

Tuple Fields of CopyCachedInitDBFailed

0: ProcessCapture
CopyCachedInitDBFailedFileNotFound

Error when a file to be copied is not found.

Tuple Fields of CopyCachedInitDBFailedFileNotFound

0: Error
CreateDBFailed

Error when createdb fails to execute.

Tuple Fields of CreateDBFailed

0: ProcessCapture
CreateConfigFailed

Error when postgresql.conf cannot be written.

Tuple Fields of CreateConfigFailed

0: Error
EmptyDataDirectory

Error when the PGDATA directory is empty.

CreateSocketDirFailed

Error when the temporary unix socket directory cannot be created.

Tuple Fields of CreateSocketDirFailed

0: Error
CreateCacheDirFailed

Error when the cache directory cannot be created.

Tuple Fields of CreateCacheDirFailed

0: Error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.