Skip to content

It is not possible to assign a Duration to a const variable #18166

@carllerche

Description

@carllerche

The struct fields are currently not pub making it impossible to assign Duration to a const variable.

Given that Duration is essentially timespec, it seems like it might be a good idea to make the struct fields public.

cc @aturon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions