pub struct TlsReference<'a>(/* private fields */);Expand description
A reference to (the) active Tls instance
Used instead of just &'a Tls so that the invariant 'd lifetime of the Tls instance
is not exposed in the Session type.
Trait Implementations§
Source§impl<'a> Clone for TlsReference<'a>
impl<'a> Clone for TlsReference<'a>
Source§fn clone(&self) -> TlsReference<'a>
fn clone(&self) -> TlsReference<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for TlsReference<'a>
Auto Trait Implementations§
impl<'a> Freeze for TlsReference<'a>
impl<'a> RefUnwindSafe for TlsReference<'a>
impl<'a> Send for TlsReference<'a>
impl<'a> Sync for TlsReference<'a>
impl<'a> Unpin for TlsReference<'a>
impl<'a> UnsafeUnpin for TlsReference<'a>
impl<'a> UnwindSafe for TlsReference<'a>
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