pub trait Metrics: Debug + Send + Sync {
    fn total_duration(&self) -> Option<Duration>;
    fn name_lookup_duration(&self) -> Option<Duration>;
    fn connect_duration(&self) -> Option<Duration>;
    fn secure_connect_duration(&self) -> Option<Duration>;
    fn redirect_duration(&self) -> Option<Duration>;
    fn transfer_duration(&self) -> Option<Duration>;
}
Expand description

HTTP 响应的指标信息

Required Methods

获取总体请求耗时

获取域名查询的耗时

获取建立连接的耗时

获取建立安全连接的耗时

获取重定向的耗时

获取请求和响应数据传输的耗时

Implementations on Foreign Types

Implementors