Struct sequoia_ipc::Config

source ·
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

Finalizes the configuration and returns a Context.

Sets the directory containing shared state.

Sets the directory containing shared state.

Sets the directory containing backend servers.

Sets the directory containing backend servers.

Sets the IPC policy.

Sets the IPC policy.

Makes this context ephemeral.

Makes this context ephemeral.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.