Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

add TcpStream from std conversion #78

Merged
merged 2 commits into from
Mar 26, 2019
Merged

add TcpStream from std conversion #78

merged 2 commits into from
Mar 26, 2019

Conversation

yoshuawuyts
Copy link
Collaborator

TryFrom will be available in next stable Rust (yay). This allows manipulating the non-opened TcpListener stream directly. Thanks!

@yoshuawuyts
Copy link
Collaborator Author

Also added a conversion directly from an address. This should save some boilerplate in some cases, and possibly some overhead.

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@yoshuawuyts yoshuawuyts merged commit fab9432 into master Mar 26, 2019
@yoshuawuyts yoshuawuyts deleted the from-std branch March 26, 2019 17:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant