pub struct PgTestFsyncBuilder { /* private fields */ }
Expand description
pg_test_fsync
command to determine fastest wal_sync_method
for PostgreSQL
Implementations§
source§impl PgTestFsyncBuilder
impl PgTestFsyncBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgTestFsyncBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgTestFsyncBuilder
from Settings
sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
sourcepub fn secs_per_test(self, secs: usize) -> Self
pub fn secs_per_test(self, secs: usize) -> Self
Set the seconds per test
Trait Implementations§
source§impl Clone for PgTestFsyncBuilder
impl Clone for PgTestFsyncBuilder
source§fn clone(&self) -> PgTestFsyncBuilder
fn clone(&self) -> PgTestFsyncBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandBuilder for PgTestFsyncBuilder
impl CommandBuilder for PgTestFsyncBuilder
source§fn get_program(&self) -> &'static OsStr
fn get_program(&self) -> &'static OsStr
Get the program name
source§fn get_program_dir(&self) -> &Option<PathBuf>
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
source§fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
Set an environment variable for the command
source§fn get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
source§impl Debug for PgTestFsyncBuilder
impl Debug for PgTestFsyncBuilder
source§impl Default for PgTestFsyncBuilder
impl Default for PgTestFsyncBuilder
source§fn default() -> PgTestFsyncBuilder
fn default() -> PgTestFsyncBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgTestFsyncBuilder
impl RefUnwindSafe for PgTestFsyncBuilder
impl Send for PgTestFsyncBuilder
impl Sync for PgTestFsyncBuilder
impl Unpin for PgTestFsyncBuilder
impl UnwindSafe for PgTestFsyncBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)