Struct openssl::ssl::SslSessionRef[]

pub struct SslSessionRef(_);

Reference to SslSession.

Methods

impl SslSessionRef
[src]

Important traits for &'a [u8]

Returns the SSL session ID.

This corresponds to SSL_SESSION_get_id.

Returns the length of the master key.

This corresponds to SSL_SESSION_get_master_key.

Copies the master key into the provided buffer.

Returns the number of bytes written, or the size of the master key if the buffer is empty.

This corresponds to SSL_SESSION_get_master_key.

Serializes the session into a DER-encoded structure.

This corresponds to i2d_SSL_SESSION.

Trait Implementations

impl Borrow<SslSessionRef> for SslSession

Immutably borrows from an owned value. Read more

impl AsRef<SslSessionRef> for SslSession

Performs the conversion.

impl ForeignTypeRef for SslSessionRef

The raw C type.

Important traits for &'a mut R

Constructs a shared instance of this type from its raw type.

Important traits for &'a mut R

Constructs a mutable reference of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl Send for SslSessionRef
[src]

impl Sync for SslSessionRef
[src]

impl ToOwned for SslSessionRef
[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