diff options
Diffstat (limited to 'ipfs-api/src/lib.rs')
-rw-r--r-- | ipfs-api/src/lib.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs index bd1f8d0..44e06b5 100644 --- a/ipfs-api/src/lib.rs +++ b/ipfs-api/src/lib.rs @@ -165,20 +165,10 @@ pub mod response; #[cfg(feature = "actix")] use actix_http::{encoding, Payload, PayloadStream}; -use futures::Stream; #[cfg(feature = "hyper")] use hyper::{self, client::HttpConnector}; #[cfg(feature = "hyper")] use hyper_tls::HttpsConnector; -use response::Error; - -/// A future that returns a stream of responses. -/// -#[cfg(feature = "actix")] -pub(crate) type AsyncStreamResponse<T> = Box<dyn Stream<Item = Result<T, Error>> + Unpin + 'static>; -#[cfg(feature = "hyper")] -pub(crate) type AsyncStreamResponse<T> = - Box<dyn Stream<Item = Result<T, Error>> + Unpin + Send + 'static>; #[cfg(feature = "actix")] pub(crate) type Request = awc::ClientRequest; |