I saw there was another similar question here asking a way to handle the errors on a bytes iterator.
My question is, however, slightly different. I just wonder what happens if the connection is no longer in a readable state.
I saw there was another similar question here asking a way to handle the errors on a bytes iterator.
My question is, however, slightly different. I just wonder what happens if the connection is no longer in a readable state.
The item in the Bytes
iterator is Result<u8, std::io::Error>
, so it will simply return an Err(insert oops here)
.
Oh i totally missed that part thanks
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.