[−]Struct openssl::ssl::SslContext  
A context object for TLS streams.
Applications commonly configure a single SslContext that is shared by all of its
SslStreams.
Methods
impl SslContext[src] 
impl SslContextpub fn builder(method: SslMethod) -> Result<SslContextBuilder, ErrorStack>[src] 
pub fn builder(method: SslMethod) -> Result<SslContextBuilder, ErrorStack>Creates a new builder object for an SslContext.
pub fn new_ex_index<T>() -> Result<Index<SslContext, T>, ErrorStack> where
    T: 'static + Sync + Send, [src] 
pub fn new_ex_index<T>() -> Result<Index<SslContext, T>, ErrorStack> where
    T: 'static + Sync + Send, Returns a new extra data index.
Each invocation of this function is guaranteed to return a distinct index. These can be used to store data in the context that can be retrieved later by callbacks, for example.
This corresponds to SSL_CTX_get_ex_new_index.
Methods from Deref<Target = SslContextRef>
pub fn cert_store(&self) -> &X509StoreRef[src] 
pub fn cert_store(&self) -> &X509StoreRefReturns a shared reference to the certificate store used for verification.
This corresponds to SSL_CTX_get_cert_store.
pub fn extra_chain_certs(&self) -> &StackRef<X509>[src] 
pub fn extra_chain_certs(&self) -> &StackRef<X509>Returns a shared reference to the stack of certificates making up the chain from the leaf.
This corresponds to SSL_CTX_get_extra_chain_certs.
pub fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>[src] 
pub fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>Returns a reference to the extra data at the specified index.
This corresponds to SSL_CTX_get_ex_data.
Trait Implementations
impl Clone for SslContext[src] 
impl Clone for SslContextfn clone(&self) -> Self[src] 
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Drop for SslContext
impl Drop for SslContextimpl Sync for SslContext[src] 
impl Sync for SslContextimpl AsRef<SslContextRef> for SslContext
impl AsRef<SslContextRef> for SslContextfn as_ref(&self) -> &SslContextRef
fn as_ref(&self) -> &SslContextRefPerforms the conversion.
impl Send for SslContext[src] 
impl Send for SslContextimpl Debug for SslContext[src] 
impl Debug for SslContextfn fmt(&self, fmt: &mut Formatter) -> Result[src] 
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Deref for SslContext
impl Deref for SslContexttype Target = SslContextRef
The resulting type after dereferencing.
fn deref(&self) -> &SslContextRef
fn deref(&self) -> &SslContextRefDereferences the value.
impl DerefMut for SslContext
impl DerefMut for SslContextfn deref_mut(&mut self) -> &mut SslContextRef
fn deref_mut(&mut self) -> &mut SslContextRefMutably dereferences the value.
impl Borrow<SslContextRef> for SslContext
impl Borrow<SslContextRef> for SslContextfn borrow(&self) -> &SslContextRef
fn borrow(&self) -> &SslContextRefImmutably borrows from an owned value. Read more
impl ForeignType for SslContext
impl ForeignType for SslContextBlanket Implementations
impl<T> From for T[src] 
impl<T> From for Timpl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T> ToOwned for T where
    T: Clone, [src] 
impl<T> ToOwned for T where
    T: Clone, type Owned = T
fn to_owned(&self) -> T[src] 
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src] 
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API.  (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API.  (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more