Skip to content

Custom derives for buffer traits #377

@thomaseizinger

Description

@thomaseizinger

It is sometimes useful to define your own buffers as wrappers around Vec<u8> or other types that have a valid IoBufMut implementation. In my case, I am getting buffers from a buffer pool (https://docs.rs/lockfree-object-pool/latest/lockfree_object_pool) and therefore I am not holding a Vec<u8> directly but rather something that DerefMuts to Vec<u8>.

It would be nice to have derive macros that allow on to derive IoBufMut for a custom type that just delegates to the inner one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededpackage: bufRelated to compio-buf

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions