Struct tmp_postgrust::synchronous::ProcessGuard
source · pub struct ProcessGuard {
pub stdout_reader: Option<Lines<BufReader<ChildStdout>>>,
pub stderr_reader: Option<Lines<BufReader<ChildStderr>>>,
pub connection_string: String,
/* private fields */
}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: StringConnection string for connecting to the temporary postgresql instance.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ProcessGuard
impl Send for ProcessGuard
impl Sync for ProcessGuard
impl Unpin for ProcessGuard
impl UnwindSafe for ProcessGuard
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