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

  1. added
    C-featureCategory: feature. This is adding a new feature.
    on Dec 14, 2025
  2. pinned this issue on Dec 14, 2025
  3. unpinned this issue on Dec 14, 2025
  4. locked and limited conversation to collaborators on Dec 14, 2025
  5. converted this issue into a discussion #3994 on Dec 14, 2025
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