pub struct StartServerParams {
pub server_binary: Option<PathBuf>,
pub reuse: bool,
pub ttl: Option<Duration>,
pub hard_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 gracefully if no request has been received for the duration of its TTL
after the last request finished 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 test process sets reuse to true
and passes different values of ttl.
hard_ttl: Option<Duration>Hard TTL for the PocketIC server.
The server stops with a hard exit after the duration of its hard TTL
since its launch.
If no hard_ttl is specified here, then the PocketIC server
does not use any default hard TTL.
Note: The hard TTL might not be overriden if the same test process sets reuse to true
and passes different values of hard_ttl.