Enum hyper_http_proxy::ProxyStream
source · pub enum ProxyStream<R> {
NoProxy(R),
Regular(R),
Secured(Box<TokioIo<TlsStream<TokioIo<R>>>>),
}
Expand description
A Proxy Stream wrapper
Variants§
Trait Implementations§
source§impl<R: Read + Write + Connection + Unpin> Connection for ProxyStream<R>
impl<R: Read + Write + Connection + Unpin> Connection for ProxyStream<R>
source§impl<R: Read + Write + Unpin> Write for ProxyStream<R>
impl<R: Read + Write + Unpin> Write for ProxyStream<R>
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8] ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the destination. Read moresource§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize, Error>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>] ) -> Poll<Result<usize, Error>>
Like
poll_write
, except that it writes from a slice of buffers.source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Returns whether this writer has an efficient
poll_write_vectored
implementation. Read moreAuto Trait Implementations§
impl<R> Freeze for ProxyStream<R>where
R: Freeze,
impl<R> !RefUnwindSafe for ProxyStream<R>
impl<R> Send for ProxyStream<R>where
R: Send,
impl<R> Sync for ProxyStream<R>where
R: Sync,
impl<R> Unpin for ProxyStream<R>where
R: Unpin,
impl<R> !UnwindSafe for ProxyStream<R>
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