Skip to content

Can Client derive Clone? #9

@enriquein

Description

@enriquein

Thank you for your work on this library. I stumbled today into a situation where I'm required to pass a rustforce::Client within a closure inside an async function. The compiler complains that the reference I'm passing doesn't live long enough, but suggests that I use move. However, when I use move, it complains that Clone isn't implemented for Client. I was wondering if having Client not implement Clone was a deliberate design choice, or if perhaps it could be something that we could add to the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions