Skip to content

Derive Encode/Decode for Pinned Types #104

@nixpulvis

Description

@nixpulvis

I'm trying to do something like this:

struct NotUnpin(i32, PhantomPinned);

#[derive(Encode, Decode)]
struct Foo(Pin<NotUnpin>);

I assume this should be possible for Encode, I'm not so sure about Decode though.

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