pub fn connect<T: Address, U>(
    message: U,
) -> impl Future<Output = Result<TcpStream, ConnectError>>
where
    Connect<T>: From<U>,
{
    service::ConnectServiceResponse::new(
        Resolver::new(default_resolver()).lookup(message.into()),
    )
}
/// Resolve and connect to remote host
Resolve and connect to remote host
Resolve and connect to remote host
pub fn connect<T: Address, U>(
    message: U,
) -> impl Future<Output = Result<TcpStream, ConnectError>>
where
    Connect<T>: From<U>,
{
    service::ConnectServiceResponse::new(
        Resolver::new(default_resolver()).lookup(message.into()),
    )
}
pub fn connect < T : Address , U > ( message : U , ) -> impl Future < Output = Result < TcpStream , ConnectError > > where Connect < T > : From < U > , { service :: ConnectServiceResponse :: new ( Resolver :: new ( default_resolver ( ) ) . lookup ( message . into ( ) ) , ) }
Resolve and connect to remote host
Resolve and connect to remote host
message
U