Skip to content

hyper_util: How to add hyper_util::client::pool::map::Map to custom struct? #3993

Description

@hatoo

Is your feature request related to a problem? Please describe.

I want use hyper_util::client::pool::map::Map as connection cache as http client.
Because of map::builder::Built<> is not exposed, we can't fill generics parameter of hyper_util::client::pool::map::Map so we can't add it custom struct.

Describe the solution you'd like

No idea

Additional context

I want create a struct of HTTP client like

pub struct Client {
    ...
    pub client_pool: hyper_util::client::pool::map::Map<????>,
}

But I can't. Is there any alternative?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions