pub struct Context { /* private fields */ }Expand description
A wrapper around a WOLFSSL_CTX.
Implementations§
source§impl Context
impl Context
sourcepub fn new_session<IOCB: IOCallbacks>(
&self,
config: SessionConfig<IOCB>,
) -> Result<Session<IOCB>, NewSessionError>
pub fn new_session<IOCB: IOCallbacks>( &self, config: SessionConfig<IOCB>, ) -> Result<Session<IOCB>, NewSessionError>
Creates a new SSL session using this underlying context.
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