[PR #1354] [MERGED] [async-std-resolver] Re-export AsyncStdConnection(Provider) #2250

Closed
opened 2026-03-16 08:12:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/1354
Author: @romanb
Created: 1/14/2021
Status: Merged
Merged: 1/14/2021
Merged by: @bluejekyll

Base: mainHead: reexport


📝 Commits (1)

  • ef3d5a6 Re-export AsyncStdConnection(Provider)

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 crates/async-std-resolver/src/lib.rs (+2 -2)

📄 Description

Analogous to the definition of TokioAsyncResolver with re-exported TokioConnection and TokioConnectionProvider, it would be useful to have AsyncStdConnection and AsyncStdConnectionProvider re-exported in the public API of async-std-resolver, so that types like this

struct Foo<C, P> {
   // ...
   resolver: AsyncResolver<C, P>
}

can be instantiated via

type AsyncStdFoo = Foo<AsyncStdConnection, AsyncStdConnectionProvider>;

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/1354 **Author:** [@romanb](https://github.com/romanb) **Created:** 1/14/2021 **Status:** ✅ Merged **Merged:** 1/14/2021 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `main` ← **Head:** `reexport` --- ### 📝 Commits (1) - [`ef3d5a6`](https://github.com/hickory-dns/hickory-dns/commit/ef3d5a6062b32c57285b4e1a02cb9514a0116245) Re-export AsyncStdConnection(Provider) ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/async-std-resolver/src/lib.rs` (+2 -2) </details> ### 📄 Description Analogous to the definition of [`TokioAsyncResolver`](https://docs.rs/trust-dns-resolver/0.20.0/trust_dns_resolver/type.TokioAsyncResolver.html) with re-exported `TokioConnection` and `TokioConnectionProvider`, it would be useful to have `AsyncStdConnection` and `AsyncStdConnectionProvider` re-exported in the public API of `async-std-resolver`, so that types like this ```rust struct Foo<C, P> { // ... resolver: AsyncResolver<C, P> } ``` can be instantiated via ```rust type AsyncStdFoo = Foo<AsyncStdConnection, AsyncStdConnectionProvider>; ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 08:12:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#2250
No description provided.