Skip to content

Conversion from Bytes to Vec<u8>? #427

@akiradeveloper

Description

@akiradeveloper

According to this thread 824a986 conversion from Bytes to Vec<u8> has ever existed but not found today. Is it deleted? but what reason? Is there some workaround today?

I want to use Bytes entirely in my library. It is a Raft library using gRPC. To send RPC I need to make Vec<u8> as payload (I hope prost generates code using Bytes instead of Vec<u8> though), if there is no cost to extract Vec<u8> from Bytes when refcnt=1 that would push me forward to fully depend on Bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions