Struct sequoia_ipc::Context
source · pub struct Context { /* private fields */ }
Expand description
A Context
for Sequoia.
§Examples
A context with reasonable defaults can be created using
Context::new
:
let c = Context::new()?;
A context can be configured using the builder pattern with
Context::configure
:
let c = Context::configure()
.ipc_policy(IPCPolicy::Robust)
.build()?;
Implementations§
source§impl Context
impl Context
sourcepub fn configure() -> Config
pub fn configure() -> Config
Creates a Context that can be configured.
The configuration is seeded like in Context::new
, but can be
modified. A configuration has to be finalized using
.build()
in order to turn it into a Context.
sourcepub fn ipc_policy(&self) -> &IPCPolicy
pub fn ipc_policy(&self) -> &IPCPolicy
Returns the IPC policy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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