Struct tmp_postgrust::TmpPostgrustFactory
source · pub struct TmpPostgrustFactory { /* private fields */ }Expand description
Factory for creating new temporary postgresql processes.
Implementations§
source§impl TmpPostgrustFactory
impl TmpPostgrustFactory
sourcepub fn try_new() -> TmpPostgrustResult<TmpPostgrustFactory>
pub fn try_new() -> TmpPostgrustResult<TmpPostgrustFactory>
Try to create a new factory by creating temporary directories and the necessary config.
sourcepub fn new_instance(&self) -> TmpPostgrustResult<ProcessGuard>
pub fn new_instance(&self) -> TmpPostgrustResult<ProcessGuard>
Start a new postgresql instance and return a process guard that will ensure it is cleaned up when dropped.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TmpPostgrustFactory
impl Send for TmpPostgrustFactory
impl Sync for TmpPostgrustFactory
impl Unpin for TmpPostgrustFactory
impl UnwindSafe for TmpPostgrustFactory
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