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

Describes a type returned by a connector.

Required Methods

Return metadata describing the connection.

Implementations on Foreign Types

Implementors

impl<S> Connection for Pin<Box<TimeoutConnectorStream<S>>>where
    S: AsyncRead + AsyncWrite + Connection + Unpin,

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