Trait aws_smithy_http_server::routing::Connected

source ·
pub trait Connected<T>: Clone {
    // Required method
    fn connect_info(target: T) -> Self;
}
Expand description

Trait that connected IO resources implement and use to produce information about the connection.

The goal for this trait is to allow users to implement custom IO types that can still provide the same connection metadata.

Required Methods§

source

fn connect_info(target: T) -> Self

Create type holding information about the connection.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Connected<&AddrStream> for SocketAddr

source§

fn connect_info(target: &AddrStream) -> Self

Implementors§