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

Doc: std::io::Write::write_all should mention ErrorKind::Interrupted #38494

Closed
gyscos opened this issue Dec 20, 2016 · 0 comments
Closed

Doc: std::io::Write::write_all should mention ErrorKind::Interrupted #38494

gyscos opened this issue Dec 20, 2016 · 0 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@gyscos
Copy link

gyscos commented Dec 20, 2016

Just like std::io::Read::read_to_end mentions that Interruped errors are safe to ignore, std::io::Write::write_all should mention that write too can safely return this error without interrupting write_all.

Actually, both std::io::Read::read and std::io::Write::write could also probably mention this part.

@steveklabnik steveklabnik removed the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Mar 10, 2017
@steveklabnik steveklabnik added A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools and removed A-docs labels Mar 23, 2017
tbu- added a commit to tbu-/rust that referenced this issue Apr 21, 2017
Also spell out that read and write operations should be retried on
`ErrorKind::Interrupted` errors.

Fixes rust-lang#38494.
frewsxcv added a commit to frewsxcv/rust that referenced this issue Apr 25, 2017
Specify behavior of `write_all` for `ErrorKind::Interrupted` errors

Also spell out that read and write operations should be retried on
`ErrorKind::Interrupted` errors.

Fixes rust-lang#38494.
arielb1 pushed a commit to arielb1/rust that referenced this issue Apr 25, 2017
Specify behavior of `write_all` for `ErrorKind::Interrupted` errors

Also spell out that read and write operations should be retried on
`ErrorKind::Interrupted` errors.

Fixes rust-lang#38494.
arielb1 pushed a commit to arielb1/rust that referenced this issue Apr 25, 2017
Specify behavior of `write_all` for `ErrorKind::Interrupted` errors

Also spell out that read and write operations should be retried on
`ErrorKind::Interrupted` errors.

Fixes rust-lang#38494.
frewsxcv added a commit to frewsxcv/rust that referenced this issue Apr 26, 2017
Specify behavior of `write_all` for `ErrorKind::Interrupted` errors

Also spell out that read and write operations should be retried on
`ErrorKind::Interrupted` errors.

Fixes rust-lang#38494.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

No branches or pull requests

3 participants