Trait axum::extract::connect_info::Connected [−][src]
pub trait Connected<T> {
type ConnectInfo: Clone + Send + Sync + 'static;
fn connect_info(target: T) -> Self::ConnectInfo;
}
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.
See Router::into_make_service_with_connect_info
for more details.
Associated Types
type ConnectInfo: Clone + Send + Sync + 'static
type ConnectInfo: Clone + Send + Sync + 'static
The connection information type the IO resources generates.
Required methods
fn connect_info(target: T) -> Self::ConnectInfo
fn connect_info(target: T) -> Self::ConnectInfo
Create type holding information about the connection.