-
Hello. I was reading section about handling EOF. I am new to Rust but it seems to me, that the checking if read returned 0 bytes and accept is as EOF looks similar to infamous null pointer problem. This is actually the purpose of structs like I have read a specs of read in By this developer will be forced to handle EOF. The only disadvantage I see is that function Honestly, I can not imagine situation when this would be actually useful - maybe only checking if there is a IO error without actually reading anything. Am I missing something? I would be happy to make a PR but I don't know if would be accepted. Thanks for answers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you please open a real issue instead? The discussions tab is for receiving help with using Tokio. |
Beta Was this translation helpful? Give feedback.
Can you please open a real issue instead? The discussions tab is for receiving help with using Tokio.