Struct openssl::ssl::SslSessionRef
[−]
pub struct SslSessionRef(_);
Reference to [SslSession].
Methods
impl SslSessionRef[src]
pub fn id(&self) -> &[u8][src]
Returns the SSL session ID.
This corresponds to SSL_SESSION_get_id.
pub fn master_key_len(&self) -> usize[src]
Returns the length of the master key.
This corresponds to SSL_SESSION_get_master_key.
pub fn master_key(&self, buf: &mut [u8]) -> usize[src]
Copies the master key into the provided buffer.
Returns the number of bytes written.
This corresponds to SSL_SESSION_get_master_key.
Trait Implementations
impl Borrow<SslSessionRef> for SslSession
fn borrow(&self) -> &SslSessionRef
Immutably borrows from an owned value. Read more
impl AsRef<SslSessionRef> for SslSession
fn as_ref(&self) -> &SslSessionRef
Performs the conversion.
impl ForeignTypeRef for SslSessionRef
type CType = SSL_SESSION
The raw C type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self[src]
ⓘImportant traits for &'a mut R
Constructs a shared instance of this type from its raw type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self[src]
ⓘImportant traits for &'a mut R
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType[src]
Returns a raw pointer to the wrapped value.
impl ToOwned for SslSessionRef[src]
type Owned = SslSession
fn to_owned(&self) -> SslSession[src]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more