feat: Bytes::from_owner by amunra · Pull Request #742 · tokio-rs/bytes
Introduces Bytes::from_owner, allowing the creation of a bytes object from another AsRef<[u8]> object which is responsible for the ownership of the exposed byte slice.
The core use case is to...
GitHub