pub enum Conn {
Plain(TcpStream),
Tls(Box<TlsStream<TcpStream>>),
}Expand description
An established HTTP transport connection.
Variants§
Plain(TcpStream)
Plaintext HTTP over TCP.
Tls(Box<TlsStream<TcpStream>>)
HTTPS: TLS over TCP (boxed — the rustls stream is large).
Implementations§
Trait Implementations§
Source§impl AsyncWrite for Conn
impl AsyncWrite for Conn
Auto Trait Implementations§
impl !RefUnwindSafe for Conn
impl !UnwindSafe for Conn
impl Freeze for Conn
impl Send for Conn
impl Sync for Conn
impl Unpin for Conn
impl UnsafeUnpin for Conn
Blanket Implementations§
Source§impl<R> AsyncReadExt for R
impl<R> AsyncReadExt for R
Source§impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
Source§fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self> ⓘwhere
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self> ⓘwhere
Self: Unpin,
Write some bytes asynchronously.
Source§fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self> ⓘwhere
Self: Unpin,
fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self> ⓘwhere
Self: Unpin,
Write all bytes asynchronously.
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