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
Streaming encoder: keep track of encoded bytes that weren't written. #92
Conversation
They'll be retried on subsequent writes, but this plays poorly with write_all. See rust-lang/rust#56889. Hat tip to #90.
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
==========================================
- Coverage 96.52% 96.19% -0.34%
==========================================
Files 12 12
Lines 1412 1471 +59
==========================================
+ Hits 1363 1415 +52
- Misses 49 56 +7
Continue to review full report at Codecov.
|
@dignifiedquire any thoughts on this implementation? Does this address your issue? |
My current code relies heavily on |
Would it be feasible in your codebase to have a |
Yes I probably need to do sth like that. I'll see if I find some time to do this later this week
…On 3. Jan 2019, 21:45 +0100, Marshall Pierce ***@***.***>, wrote:
Would it be feasible in your codebase to have a write_all_safe defined for some WriteExtension trait that doesn't choke on Ok(0) and use that instead? I'm wondering if that's maybe something I could suggest in the docs for how to get past the write_all limitations while the rust core team figures out what a better path forward would be.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
There is something I'm confused about, why is it an issue for |
You mean, why does |
They'll be retried on subsequent writes, but this plays poorly with
write_all. See rust-lang/rust#56889.
Hat tip to #90.