Trait hyper_util::client::legacy::connect::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,