Struct wolfssl::ContextBuilder
source · pub struct ContextBuilder { /* private fields */ }Expand description
Produces a Context once built.
Implementations§
source§impl ContextBuilder
impl ContextBuilder
sourcepub fn new(method: Method) -> Result<Self, NewContextBuilderError>
pub fn new(method: Method) -> Result<Self, NewContextBuilderError>
Invokes wolfSSL_CTX_new
sourcepub fn try_when<F>(self, cond: bool, func: F) -> Result<Self>
pub fn try_when<F>(self, cond: bool, func: F) -> Result<Self>
When cond is True call fallible func on Self
sourcepub fn try_when_some<F, T>(self, maybe: Option<T>, func: F) -> Result<Self>
pub fn try_when_some<F, T>(self, maybe: Option<T>, func: F) -> Result<Self>
When maybe is Some(_) call fallible func on Self and the contained value
sourcepub fn with_root_certificate(self, root: RootCertificate<'_>) -> Result<Self>
pub fn with_root_certificate(self, root: RootCertificate<'_>) -> Result<Self>
sourcepub fn with_cipher_list(self, cipher_list: &str) -> Result<Self>
pub fn with_cipher_list(self, cipher_list: &str) -> Result<Self>
sourcepub fn with_groups(self, groups: &[CurveGroup]) -> Result<Self>
pub fn with_groups(self, groups: &[CurveGroup]) -> Result<Self>
Wraps wolfSSL_CTX_set_groups
sourcepub fn with_certificate(self, secret: Secret<'_>) -> Result<Self>
pub fn with_certificate(self, secret: Secret<'_>) -> Result<Self>
sourcepub fn with_private_key(self, secret: Secret<'_>) -> Result<Self>
pub fn with_private_key(self, secret: Secret<'_>) -> Result<Self>
sourcepub fn with_secure_renegotiation(self) -> Result<Self>
pub fn with_secure_renegotiation(self) -> Result<Self>
Wraps wolfSSL_CTX_UseSecureRenegotiation
NOTE: No official documentation available for this api from wolfssl
sourcepub fn with_verify_method(self, mode: SslVerifyMode)
pub fn with_verify_method(self, mode: SslVerifyMode)
Wraps wolfSSL_CTX_set_verify0
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl !Send for ContextBuilder
impl !Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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