Skip to content

Restore feature parity in async TCP #72

Open
@chrysn

Description

@chrysn

With the embedded-nal-async 0.2.0 release and #70, the -async version of the traits lost feature parity with the sync/nb versions; in particular, missing points are

  • binding to ports, and
  • closing a connection.

For closing a connection, it may make sense to replace the current AT type Connection<'m>: embedded_io::asynch::Read<Error = Self::Error> + embedded_io::asynch::Write<Error = Self::Error> [...]; with a dedicated TcpConnection trait, which depends on Read and Write, but in addition requires implementation of a close method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions