Skip to content

std::io::Error is Send but not Sync #24049

Closed
@lilyball

Description

@lilyball

The std::io::Error type is Send but it's not Sync. This is because of the use of Box<Error+Send>, as that value is not Sync, and so therefore io::Error is not Sync.

This is a problem for me as I want to stuff an io::Error into a sync::Arc and have the resulting value be Send, but Arc is only Send if its element type is Send + Sync.

/cc @alexcrichton

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