hyper_util::client::legacy::connect

Trait Connection

Source
pub trait Connection {
    // Required method
    fn connected(&self) -> Connected;
}
Expand description

Describes a type returned by a connector.

Required Methods§

Source

fn connected(&self) -> Connected

Return metadata describing the connection.

Implementations on Foreign Types§

Source§

impl Connection for TcpStream

Implementors§

Source§

impl<T> Connection for TokioIo<T>
where T: Connection,

impl<T> Connection for MaybeHttpsStream<T>
where T: Connection,

impl<S> Connection for Pin<Box<TimeoutStream<S>>>
where S: Read + Write + Connection + Unpin,

impl<T> Connection for TimeoutConnector<T>
where T: Read + Write + Connection + Service<Uri> + Send + Unpin, T::Response: Read + Write + Send + Unpin, T::Future: Send + 'static, T::Error: Into<Box<dyn Error + Send + Sync>>,