Skip to content

Conversation

manifest
Copy link
Contributor

Motivation

Implementation From<Bytes> for Message is missing.

The internal representation of the binary message is Bytes. It would be convenient to have related From implementation, especially for application code that is designed to work with Bytes as opposed to Vec<u8>.

Solution

Added an implement From<Bytes> for Message.

@manifest manifest force-pushed the message-from-bytes branch from bbaf52d to ec90778 Compare March 17, 2025 08:58
Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

Can you add a changelog entry, please?

@manifest manifest force-pushed the message-from-bytes branch from ec90778 to b0386b6 Compare March 17, 2025 14:12
Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

Thanks!

@jplatte jplatte enabled auto-merge (squash) March 17, 2025 14:13
@jplatte jplatte merged commit c997137 into tokio-rs:main Mar 17, 2025
18 checks passed
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.

2 participants