Skip to content

Feature request: use primitives from standard library #1745

Closed
@netizen-a

Description

@netizen-a

Motivation

I believe it would be more consistent with rust to make use of the resources in std::os::windows. This includes std::os::windows::raw::HANDLE and std::os::windows::raw::SOCKET.
This would make use of the standard library with windows-rs crate easier by making use of compatibility between them.

Drawbacks

None that I can see yet.

Alternatives

A possible alternative is to take the current HANDLE in windows-rs and apply a trait to it such as std::os::windows::io::AsRawHandle to convert back to the standard library types.

Additional context

This is related to #760.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions