Skip to content

io: the Error trait could require the implementation of Fom<ErrorKind>. #688

@Conaclos

Description

@Conaclos

std::io::Error implements From<std::io::ErrorKind>.
This is "intended for use for errors not exposed to the user, where allocating onto the heap (for normal construction via Error::new) is too costly".
This seems well suited to the context of embedded systems.

What do you think about requiring the implementation of From<embeddedd_io::ErrorKind> for the embeddedd_io::Error trait?
This is a breaking change because this could require to all implementation of a custom Error to also implement From<embeddedd_io::ErrorKind>.

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