-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Trait AsyncVectoredWrite and related utilities #3092
Closed
Closed
Commits on Nov 7, 2020
-
add trait AsyncVectoredWrite, impl for TcpStream
Reintroduce vectored I/O facilities in the new module io::vec, starting from the poll_write_vectored method in the new AsyncVectoredWrite trait. Implement AsyncVectoredWrite for TcpStream.
Configuration menu - View commit details
-
Copy full SHA for 508e965 - Browse repository at this point
Copy the full SHA 508e965View commit details -
impl AsyncVectoredWrite for Sink
io::Sink can consume vectored buffers just as well as it can do single buffers.
Configuration menu - View commit details
-
Copy full SHA for 151ef58 - Browse repository at this point
Copy the full SHA 151ef58View commit details -
Configuration menu - View commit details
-
Copy full SHA for f41e16f - Browse repository at this point
Copy the full SHA f41e16fView commit details -
An extension trait providing async-friendly methods for all implementors of AsyncVectoredWrite.
Configuration menu - View commit details
-
Copy full SHA for a17f3ce - Browse repository at this point
Copy the full SHA a17f3ceView commit details -
implement AsyncVectoredWrite for in-memory objects
Delegate these implementations to std::io::Write::write_vectored, no blocking when writing to byte containers in memory.
Configuration menu - View commit details
-
Copy full SHA for e80dc52 - Browse repository at this point
Copy the full SHA e80dc52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58a6be3 - Browse repository at this point
Copy the full SHA 58a6be3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e412f1b - Browse repository at this point
Copy the full SHA e412f1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 80b9075 - Browse repository at this point
Copy the full SHA 80b9075View commit details -
Configuration menu - View commit details
-
Copy full SHA for 871b7ab - Browse repository at this point
Copy the full SHA 871b7abView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa50be3 - Browse repository at this point
Copy the full SHA fa50be3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b683e2 - Browse repository at this point
Copy the full SHA 8b683e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d52455 - Browse repository at this point
Copy the full SHA 0d52455View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40e53bd - Browse repository at this point
Copy the full SHA 40e53bdView commit details -
Rewrite AsyncVectoredWrite impl for BufWriter
Fill the buffer more eagerly over consecutive calls to poll_write_vectored. At the first non-empty slice, the buffer is flushed if the slice does not fit completely, after which filling can continue until capacity is exhausted, or there is an oversized slice for direct writing, or there are no more slices to write.
Configuration menu - View commit details
-
Copy full SHA for ba29993 - Browse repository at this point
Copy the full SHA ba29993View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.