Struct tls_api::TlsStreamWithSocket [−][src]
TLS stream object returned by connect_with_socket
and accept_with_socket
operations.
Since Rust has no HKT, it is not possible to declare something like
ⓘ
trait TlsConnector { type <S> TlsStream<S> : TlsStreamImpl; }
So TlsStream
is actually a box to concrete TLS implementation.
So each operation perform a virtual call (which is not a big deal for sockets).
This type is parameterized by socket type, TlsStream
is simpler version of this stream.
Implementations
impl<S: AsyncSocket> TlsStreamWithSocket<S>
[src][−]
pub fn new<I: TlsStreamWithUpcastDyn<S>>(imp: I) -> TlsStreamWithSocket<S>
[src][−]
Construct a stream from a stream implementation.
This function is intended to be used by API implementors, not by users.
pub fn without_type_parameter(self) -> TlsStream
[src][−]
Convert to a functionally and performance identical TLS stream object but without socket type parameter.
Trait Implementations
impl<S: AsyncSocket> AsyncRead for TlsStreamWithSocket<S>
[src][+]
impl<S: AsyncSocket> AsyncWrite for TlsStreamWithSocket<S>
[src][+]
impl<S: AsyncSocket> Debug for TlsStreamWithSocket<S>
[src][+]
impl<S: AsyncSocket> Deref for TlsStreamWithSocket<S>
[src][+]
impl<S: AsyncSocket> DerefMut for TlsStreamWithSocket<S>
[src][+]
impl<S: AsyncSocket> TlsStreamDyn for TlsStreamWithSocket<S>
[src][+]
impl<S: AsyncSocket> TlsStreamWithSocketDyn<S> for TlsStreamWithSocket<S>
[src][+]
Auto Trait Implementations
impl<S> !RefUnwindSafe for TlsStreamWithSocket<S>
[src]
impl<S> Send for TlsStreamWithSocket<S>
[src]
impl<S> !Sync for TlsStreamWithSocket<S>
[src]
impl<S> Unpin for TlsStreamWithSocket<S>
[src]
impl<S> !UnwindSafe for TlsStreamWithSocket<S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
[src][+]
R: AsyncRead + ?Sized,
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
[src][+]
W: AsyncWrite + ?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>,