This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::task::{Context, Poll}; | |
use std::pin::Pin; | |
use hyper::client::{connect::{Connection, Connected}}; | |
use tokio::net::{TcpStream}; | |
use tokio::io::{ReadBuf, AsyncWrite, AsyncRead}; | |
use async_speed_limit::{limiter::{Limiter, Consume}, clock::{StandardClock}}; | |
use futures_util::future::Future; | |
//use anyhow::Error; | |
use std::io::Error; |