Skip to content

How do I implement AsyncWrite for enum? #3993

Answered by Darksonn
Faputa asked this question in Q&A
Discussion options

You must be logged in to vote

An enum like this is available as tokio_util::either::Either. You can find the source in tokio-util/src/either.rs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Faputa
Comment options

Answer selected by Darksonn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants