-
Notifications
You must be signed in to change notification settings - Fork 525
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
Writer should accept Buffer
#4465
Comments
Can I try some of them like write and write_from? |
Welcome to have a try! |
@Xuanwo there is no copy_from and pipe_from now? |
Yes, not implemented. |
@Xuanwo could you then update the issue description and add related source code any contributor can start from? |
The only API left is I'm still hesitate about the |
The API design is still quite abstract. As a developer unfamiliar with this scope, what does it mean |
Also, |
Write API Design
We want to implement the follwing APIs upon
Writer
:into_sink() -> BufferSink
(make this internal first)into_bytes_sink() -> FuturesBytesSink
sink
API withinto_bytes_sink
into_futures_async_write() -> FuturesAsyncWriter
The name is still being decided, but the semantics should be fine as they are.
In general, we will provide three kinds of API:
write
andinto_sink
write_from
andinto_bytes_sink
into_futures_async_write
The text was updated successfully, but these errors were encountered: