pub struct ContextBuilder<T> { /* private fields */ }Expand description
Context builder for creating contexts with specific configurations
Implementations§
Source§impl<T> ContextBuilder<T>
impl<T> ContextBuilder<T>
Sourcepub fn with_provider(self, provider: Box<dyn CryptoProvider>) -> Self
pub fn with_provider(self, provider: Box<dyn CryptoProvider>) -> Self
Set the provider for the context
Sourcepub fn build(self) -> BaseContext<T>
pub fn build(self) -> BaseContext<T>
Build the context
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ContextBuilder<T>
impl<T> !RefUnwindSafe for ContextBuilder<T>
impl<T> Send for ContextBuilder<T>where
T: Send,
impl<T> Sync for ContextBuilder<T>where
T: Sync,
impl<T> Unpin for ContextBuilder<T>where
T: Unpin,
impl<T> UnsafeUnpin for ContextBuilder<T>
impl<T> !UnwindSafe for ContextBuilder<T>
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