pub struct PgTempDaemon { /* private fields */ }Expand description
A daemon that listens on the given port and creates a new PgTempDB for each connection it
receives, proxying all data to the database. If single_mode is activated, all connections are
proxied to the same database.
Implementations§
Source§impl PgTempDaemon
impl PgTempDaemon
Sourcepub async fn async_new(port: u16) -> PgTempDaemon
pub async fn async_new(port: u16) -> PgTempDaemon
Quick start a daemon with default parameters.
Sourcepub async fn allocate_db(&mut self)
pub async fn allocate_db(&mut self)
Pre-initialize a PgTempDB
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PgTempDaemon
impl RefUnwindSafe for PgTempDaemon
impl Send for PgTempDaemon
impl Sync for PgTempDaemon
impl Unpin for PgTempDaemon
impl UnwindSafe for PgTempDaemon
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