Skip to content

Why is Device trait specified for all lifetimes ? #688

Closed
@gopakumarce

Description

@gopakumarce

Hi,

The thread below illustrates a use case where a third party Device structure can have borrowed data with its own lifetimes. And this makes it impossible to implement the Device trait for such a structure. Also it need not be a reference to the packet itself as mentioned in the thread below, basically a third party device structure cannot have any kind of references :(

https://users.rust-lang.org/t/implementing-a-trait-for-all-lifetimes-of-the-struct/45045

I cant see why the Device trait is mentioned as "for all lifetimes", can anything be done to support this pls ?

Rgds,
Gopa.

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