[−][src]Struct tls_api::TlsStream
Since Rust has no HKT, it is not possible to declare something like
ⓘThis example is not tested
trait TlsConnector { type <S> TlsStream<S> : TlsStreamImpl; }
So TlsStream
is actually a box to concrete TLS implementation.
Methods
impl<S: 'static> TlsStream<S>
[src][−]
pub fn new<I: TlsStreamImpl<S> + 'static>(imp: I) -> TlsStream<S>
[src]
pub fn get_mut(&mut self) -> &mut S
[src]
pub fn get_ref(&self) -> &S
[src]
pub fn get_alpn_protocol(&self) -> Option<Vec<u8>>
[src]
Trait Implementations
impl<S> AsyncRead for TlsStream<S>
[src][+]
impl<S> AsyncWrite for TlsStream<S>
[src][+]
impl<S: Debug + 'static> Debug for TlsStream<S>
[src][+]
Auto Trait Implementations
impl<S> !RefUnwindSafe for TlsStream<S>
impl<S> Send for TlsStream<S>
impl<S> Sync for TlsStream<S>
impl<S> Unpin for TlsStream<S>
impl<S> !UnwindSafe for TlsStream<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,