Trait hyper::client::connect::sealed::ConnectSvc

source ·
pub trait ConnectSvc {
    type Connection: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static;
    type Error: Into<Box<dyn StdError + Send + Sync>>;
    type Future: Future<Output = Result<Self::Connection, Self::Error>> + Unpin + Send + 'static;

    // Required method
    fn connect(self, internal_only: Internal, dst: Uri) -> Self::Future;
}

Required Associated Types§

source

type Connection: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static

source

type Error: Into<Box<dyn StdError + Send + Sync>>

source

type Future: Future<Output = Result<Self::Connection, Self::Error>> + Unpin + Send + 'static

Required Methods§

source

fn connect(self, internal_only: Internal, dst: Uri) -> Self::Future

Implementors§

source§

impl<S, T> ConnectSvc for S
where S: Service<Uri, Response = T> + Send + 'static, S::Error: Into<Box<dyn StdError + Send + Sync>>, S::Future: Unpin + Send, T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,

§

type Connection = T

§

type Error = <S as Service<Uri>>::Error

§

type Future = Oneshot<S, Uri>