pub struct StartServerParams {
pub server_binary: Option<PathBuf>,
pub reuse: bool,
pub ttl: Option<Duration>,
}Fields§
§server_binary: Option<PathBuf>§reuse: boolReuse an existing PocketIC server spawned by this process.
ttl: Option<Duration>TTL for the PocketIC server.
The server stops if no request has been received during its TTL
and if there are no more pending requests.
A default value of TTL is used if no ttl is specified here.
Note: The TTL might not be overriden if the same process sets reuse to true
and passes different values of ttl.
Trait Implementations§
Source§impl Default for StartServerParams
impl Default for StartServerParams
Source§fn default() -> StartServerParams
fn default() -> StartServerParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StartServerParams
impl RefUnwindSafe for StartServerParams
impl Send for StartServerParams
impl Sync for StartServerParams
impl Unpin for StartServerParams
impl UnwindSafe for StartServerParams
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