Struct sequoia_ipc::Config [−][src]
pub struct Config(_);
Expand description
Represents a Context
configuration.
A context can be configured using the builder pattern with
Context::configure
:
let c = Context::configure()
.ipc_policy(IPCPolicy::Robust)
.build()?;
You can create ephemeral context that are useful for tests and one-shot programs:
let c = Context::configure().ephemeral().build()?;
let ephemeral_home = c.home().to_path_buf();
// Do some tests.
drop(c);
assert!(! ephemeral_home.exists());
Implementations
Sets the directory containing shared state.
Sets the directory containing backend servers.
Sets the IPC policy.
Sets the IPC policy.
Makes this context ephemeral.