Struct tmp_postgrust::synchronous::ProcessGuard[][src]

pub struct ProcessGuard {
    pub stdout_reader: Option<Lines<BufReader<ChildStdout>>>,
    pub stderr_reader: Option<Lines<BufReader<ChildStderr>>>,
    pub connection_string: String,
    // some fields omitted
}
Expand description

ProcessGuard represents a postgresql process that is running in the background. once the guard is dropped the process will be killed.

Fields

stdout_reader: Option<Lines<BufReader<ChildStdout>>>

Allows users to read stdout by line for debugging.

stderr_reader: Option<Lines<BufReader<ChildStderr>>>

Allows users to read stderr by line for debugging.

connection_string: String

Connection string for connecting to the temporary postgresql instance.

Trait Implementations

Signal that the process needs to end.

Executes the destructor for this type. Read more

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.

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.