[−]Struct openssl::ssl::SslSession
An encoded SSL session.
These can be cached to share sessions across connections.
Methods
impl SslSession[src]
impl SslSessionpub fn from_der(der: &[u8]) -> Result<SslSession, ErrorStack>[src]
pub fn from_der(der: &[u8]) -> Result<SslSession, ErrorStack>Deserializes a DER-encoded session structure.
This corresponds to d2i_SSL_SESSION.
Methods from Deref<Target = SslSessionRef>
pub fn id(&self) -> &[u8][src]
pub fn id(&self) -> &[u8]Returns the SSL session ID.
This corresponds to SSL_SESSION_get_id.
pub fn master_key_len(&self) -> usize[src]
pub fn master_key_len(&self) -> usizeReturns the length of the master key.
This corresponds to SSL_SESSION_get_master_key.
pub fn master_key(&self, buf: &mut [u8]) -> usize[src]
pub fn master_key(&self, buf: &mut [u8]) -> usizeCopies 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.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>[src]
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>Serializes the session into a DER-encoded structure.
This corresponds to i2d_SSL_SESSION.
Trait Implementations
impl Clone for SslSession[src]
impl Clone for SslSessionfn clone(&self) -> SslSession[src]
fn clone(&self) -> SslSessionReturns 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 SslSession
impl Drop for SslSessionimpl Sync for SslSession[src]
impl Sync for SslSessionimpl AsRef<SslSessionRef> for SslSession
impl AsRef<SslSessionRef> for SslSessionfn as_ref(&self) -> &SslSessionRef
fn as_ref(&self) -> &SslSessionRefPerforms the conversion.
impl Send for SslSession[src]
impl Send for SslSessionimpl Deref for SslSession
impl Deref for SslSessiontype Target = SslSessionRef
The resulting type after dereferencing.
fn deref(&self) -> &SslSessionRef
fn deref(&self) -> &SslSessionRefDereferences the value.
impl DerefMut for SslSession
impl DerefMut for SslSessionfn deref_mut(&mut self) -> &mut SslSessionRef
fn deref_mut(&mut self) -> &mut SslSessionRefMutably dereferences the value.
impl Borrow<SslSessionRef> for SslSession
impl Borrow<SslSessionRef> for SslSessionfn borrow(&self) -> &SslSessionRef
fn borrow(&self) -> &SslSessionRefImmutably borrows from an owned value. Read more
impl ForeignType for SslSession
impl ForeignType for SslSessiontype CType = SSL_SESSION
The raw C type.
type Ref = SslSessionRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut SSL_SESSION) -> SslSession
unsafe fn from_ptr(ptr: *mut SSL_SESSION) -> SslSessionConstructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut SSL_SESSION
fn as_ptr(&self) -> *mut SSL_SESSIONReturns a raw pointer to the wrapped value.
Blanket 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