Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make split/into_split generic #105

Merged
merged 11 commits into from
Sep 1, 2022

Conversation

Kingtous
Copy link
Contributor

@Kingtous Kingtous commented Sep 1, 2022

This PR introduces an unsafe split trait for uniforming split logic.

Related: monoio-rs#1

Note: This PR may break some code which use independent split/into_split method of TcpStream, UnixStream, etc.

Workaround: just import 'monoio::io::Splitable' to inject uniform split/into_split method. Use suggestions from IDE can resolve this import directly.

@Kingtous Kingtous marked this pull request as draft September 1, 2022 09:18
opt: remove ReuniteError Debug constraint
@Kingtous Kingtous marked this pull request as ready for review September 1, 2022 09:20
@Kingtous Kingtous changed the title feat: make split/into_split be generic feat: make split/into_split generic Sep 1, 2022
monoio/src/io/util/split.rs Show resolved Hide resolved
monoio/src/io/util/split.rs Outdated Show resolved Hide resolved
monoio/src/io/util/split.rs Outdated Show resolved Hide resolved
monoio/src/io/util/split.rs Outdated Show resolved Hide resolved
monoio/tests/tcp_echo.rs Outdated Show resolved Hide resolved
monoio/tests/tcp_into_split.rs Outdated Show resolved Hide resolved
@ihciah ihciah merged commit 8835a63 into bytedance:master Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants