Struct openssl::ssl::SslContext
[−]
pub struct SslContext(_);
Methods
impl SslContext
[src]
fn builder(method: SslMethod) -> Result<SslContextBuilder, ErrorStack>
[src]
fn new_ex_index<T>() -> Result<Index<SslContext, T>, ErrorStack> where
T: 'static + Sync + Send,
[src]
T: 'static + Sync + Send,
Returns a new extra data index.
Each invocation of this function is guaranteed to return a distinct index.
Methods from Deref<Target = SslContextRef>
fn cert_store(&self) -> &X509StoreRef
[src]
Returns the certificate store used for verification.
fn extra_chain_certs(&self) -> &StackRef<X509>
[src]
fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>
[src]
Returns a reference to the extra data at the specified index.
Trait Implementations
impl ForeignType for SslContext
type CType = SSL_CTX
The raw C type.
type Ref = SslContextRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut SSL_CTX) -> SslContext
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut SSL_CTX
Returns a raw pointer to the wrapped value.
impl Drop for SslContext
impl Deref for SslContext
type Target = SslContextRef
The resulting type after dereferencing.
fn deref(&self) -> &SslContextRef
Dereferences the value.
impl DerefMut for SslContext
fn deref_mut(&mut self) -> &mut SslContextRef
Mutably dereferences the value.
impl Send for SslContext
[src]
impl Sync for SslContext
[src]
impl Clone for SslContext
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more