pub trait AMQPUriTcpExt {
// Required methods
fn connect_with_config(
&self,
config: TLSConfig<'_, '_, '_>,
) -> HandshakeResult;
fn connect_with_config_async<RK: RuntimeKit + Send + Sync>(
&self,
config: TLSConfig<'_, '_, '_>,
runtime: &Runtime<RK>,
) -> impl Future<Output = Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>>
where Self: Sized;
// Provided methods
fn connect(&self) -> HandshakeResult
where Self: Sized { ... }
fn connect_async<RK: RuntimeKit + Send + Sync>(
&self,
runtime: &Runtime<RK>,
) -> impl Future<Output = Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>>
where Self: Sized { ... }
}
Expand description
Trait providing a method to connect to a TcpStream
Required Methods§
Sourcefn connect_with_config(&self, config: TLSConfig<'_, '_, '_>) -> HandshakeResult
fn connect_with_config(&self, config: TLSConfig<'_, '_, '_>) -> HandshakeResult
connect to a TcpStream with the given configuration
Sourcefn connect_with_config_async<RK: RuntimeKit + Send + Sync>(
&self,
config: TLSConfig<'_, '_, '_>,
runtime: &Runtime<RK>,
) -> impl Future<Output = Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>>where
Self: Sized,
fn connect_with_config_async<RK: RuntimeKit + Send + Sync>(
&self,
config: TLSConfig<'_, '_, '_>,
runtime: &Runtime<RK>,
) -> impl Future<Output = Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>>where
Self: Sized,
connect to a TcpStream with the given configuration
Provided Methods§
Sourcefn connect(&self) -> HandshakeResultwhere
Self: Sized,
fn connect(&self) -> HandshakeResultwhere
Self: Sized,
connect to a TcpStream
Sourcefn connect_async<RK: RuntimeKit + Send + Sync>(
&self,
runtime: &Runtime<RK>,
) -> impl Future<Output = Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>>where
Self: Sized,
fn connect_async<RK: RuntimeKit + Send + Sync>(
&self,
runtime: &Runtime<RK>,
) -> impl Future<Output = Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>>where
Self: Sized,
connect to a TcpStream