pub struct TcpNoAuth { /* private fields */ }
Expand description
Represents the proxy constructor
that builds a stream when the function
connect
is invoked
Implementations§
Source§impl TcpNoAuth
impl TcpNoAuth
pub fn new( destination: Destination, port: u16, timeouts: ConnectionTimeouts, ) -> TcpNoAuth
Trait Implementations§
Source§impl ProxyConstructor for TcpNoAuth
impl ProxyConstructor for TcpNoAuth
Source§type Stream = TcpStream
type Stream = TcpStream
Represents a stream that the proxy
client operates on (sends protocol data over it)
Source§type ProxyStream = TcpNoAuthStream
type ProxyStream = TcpNoAuthStream
Represents the actual proxy stream,
returned by the connect function
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
stream: Self::Stream,
) -> Pin<Box<dyn Future<Output = Result<Self::ProxyStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
stream: Self::Stream,
) -> Pin<Box<dyn Future<Output = Result<Self::ProxyStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes ownership of an existant stream,
establishes a proxixied connection on the stream
and returns the proxy stream if the connection was
successful, unless an error
Auto Trait Implementations§
impl Freeze for TcpNoAuth
impl RefUnwindSafe for TcpNoAuth
impl Send for TcpNoAuth
impl Sync for TcpNoAuth
impl Unpin for TcpNoAuth
impl UnwindSafe for TcpNoAuth
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