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

Add From impls for extract::ws::Message #1421

Merged
merged 2 commits into from Sep 26, 2022

Conversation

Rapptz
Copy link
Contributor

@Rapptz Rapptz commented Sep 26, 2022

Motivation

I wanted to do something like ws.send("hello".into()).await? but the From impls in tungstenite were not exposed.

Solution

This merely reimplements those From impls from tungstenite.

These come from tungstenite but were not exposed by axum
@jplatte
Copy link
Member

jplatte commented Sep 26, 2022

Thanks for the PR! Can you add a changelog entry?

Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm - jplatte was faster 😅

@Rapptz
Copy link
Contributor Author

Rapptz commented Sep 26, 2022

I've added the changelog entry, unsure if the wording needs tweaking!

Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davidpdrsn davidpdrsn enabled auto-merge (squash) September 26, 2022 18:59
@davidpdrsn davidpdrsn merged commit fef95bf into tokio-rs:main Sep 26, 2022
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.

None yet

3 participants