pub struct BorrowedSslSession<'ssl> { /* private fields */ }Expand description
A borrowed view of the current TLS session (SSL_SESSION*), tied to the
lifetime of the owning Ssl connection.
Obtained from Ssl::session. The pointer is not freed on drop —
OpenSSL owns it for as long as the SSL object is alive. Use
Ssl::get1_session if you need an independent owned copy.
All read-only methods of SslSession are available via Deref.
Trait Implementations§
Source§impl Deref for BorrowedSslSession<'_>
impl Deref for BorrowedSslSession<'_>
Source§type Target = SslSession
type Target = SslSession
The resulting type after dereferencing.
Source§fn deref(&self) -> &SslSession
fn deref(&self) -> &SslSession
Dereferences the value.
impl Send for BorrowedSslSession<'_>
Auto Trait Implementations§
impl<'ssl> Freeze for BorrowedSslSession<'ssl>
impl<'ssl> RefUnwindSafe for BorrowedSslSession<'ssl>
impl<'ssl> !Sync for BorrowedSslSession<'ssl>
impl<'ssl> Unpin for BorrowedSslSession<'ssl>
impl<'ssl> UnsafeUnpin for BorrowedSslSession<'ssl>
impl<'ssl> UnwindSafe for BorrowedSslSession<'ssl>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more