Struct ntex::server::openssl::ssl::SslSessionRef [−][src]
pub struct SslSessionRef(_);
Expand description
Reference to SslSession
.
Implementations
impl SslSessionRef
[src]
impl SslSessionRef
[src]pub fn master_key_len(&self) -> usize
[src]
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]
pub fn master_key(&self, buf: &mut [u8]) -> usize
[src]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
.
pub fn max_early_data(&self) -> u32
[src]
pub fn max_early_data(&self) -> u32
[src]Gets the maximum amount of early data that can be sent on this session.
Requires OpenSSL 1.1.1 or newer.
This corresponds to SSL_SESSION_get_max_early_data
.
pub fn time(&self) -> i64
[src]
pub fn time(&self) -> i64
[src]Returns the time at which the session was established, in seconds since the Unix epoch.
This corresponds to SSL_SESSION_get_time
.
pub fn timeout(&self) -> i64
[src]
pub fn timeout(&self) -> i64
[src]Returns the sessions timeout, in seconds.
A session older than this time should not be used for session resumption.
This corresponds to SSL_SESSION_get_timeout
.
pub fn protocol_version(&self) -> SslVersion
[src]
pub fn protocol_version(&self) -> SslVersion
[src]Returns the session’s TLS protocol version.
Requires OpenSSL 1.1.0 or newer.
This corresponds to SSL_SESSION_get_protocol_version
.
pub fn to_der(&self) -> Result<Vec<u8, Global>, ErrorStack>
[src]
pub fn to_der(&self) -> Result<Vec<u8, Global>, ErrorStack>
[src]Serializes the session into a DER-encoded structure.
This corresponds to i2d_SSL_SESSION
.
Trait Implementations
impl AsRef<SslSessionRef> for SslSession
[src]
impl AsRef<SslSessionRef> for SslSession
[src]pub fn as_ref(&self) -> &SslSessionRef
[src]
pub fn as_ref(&self) -> &SslSessionRef
[src]Performs the conversion.
impl Borrow<SslSessionRef> for SslSession
[src]
impl Borrow<SslSessionRef> for SslSession
[src]pub fn borrow(&self) -> &SslSessionRef
[src]
pub fn borrow(&self) -> &SslSessionRef
[src]Immutably borrows from an owned value. Read more
impl ForeignTypeRef for SslSessionRef
[src]
impl ForeignTypeRef for SslSessionRef
[src]impl ToOwned for SslSessionRef
[src]
impl ToOwned for SslSessionRef
[src]type Owned = SslSession
type Owned = SslSession
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> SslSession
[src]
pub 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]
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
impl Send for SslSessionRef
[src]
impl Sync for SslSessionRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self