Skip to content

Make TlsStream cloneable #18

Open
Open
@NyxCode

Description

@NyxCode

async_std::net::TcpStream implements Clone, which makes it possible to read and write to a socket at the same time.
Official async-std example
This library does not implement Clone for TlsStream, neither does it implement AsyncRead or AsyncWrite for &TlsStream.
How would I rewrite the example above to use TLS when TlsStream is not clonable?

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