[]Struct openssl::ssl::SslContext

pub struct 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]

Creates a new builder object for an SslContext.

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>

Returns a shared reference to the certificate store used for verification.

This corresponds to SSL_CTX_get_cert_store.

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.

Returns a reference to the extra data at the specified index.

This corresponds to SSL_CTX_get_ex_data.

Trait Implementations

impl Sync for SslContext
[src]

impl AsRef<SslContextRef> for SslContext

Performs the conversion.

impl Send for SslContext
[src]

impl Clone for SslContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for SslContext

Executes the destructor for this type. Read more

impl Deref for SslContext

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for SslContext

Mutably dereferences the value.

impl Debug for SslContext
[src]

Formats the value using the given formatter. Read more

impl Borrow<SslContextRef> for SslContext

Immutably borrows from an owned value. Read more

impl ForeignType for SslContext

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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