Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaner Transport object #274

Merged
merged 10 commits into from
Oct 20, 2024
Merged

Cleaner Transport object #274

merged 10 commits into from
Oct 20, 2024

Conversation

sourcefrog
Copy link
Owner

@sourcefrog sourcefrog commented Oct 19, 2024

Previously, clients needed to deal with an Arc<dyn Transport>, which was unfortunate because it's widely used. Now they can just use a &Transport, which is cheaply cloneable. An object pointer to the particular implementation is held internally.

@sourcefrog sourcefrog changed the title Make Transport a more opaque API Cleaner Transport object Oct 19, 2024
@sourcefrog sourcefrog marked this pull request as ready for review October 20, 2024 00:10
@sourcefrog sourcefrog merged commit 2d631fb into main Oct 20, 2024
35 checks passed
@sourcefrog sourcefrog deleted the transport-ref branch October 20, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant