You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function does not provide any guarantees about whether it blocks waiting for data, but if an object needs to block for a read but cannot it will typically signal this via an Err return value.
This could be taken as meaning EAGAIN/EWOULDBLOCK need to be handled (which, btw, is not in ErrorKind, but O_NONBLOCK is probably not in libstd anyways), but it looks like it means one needs to handle EINTR, which, if you're not familiar with the POSIX API, is very easy to skip.
BTW, this, unfortunately, makes read() cumbersome to use.
The text was updated successfully, but these errors were encountered:
https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read currently says:
This could be taken as meaning EAGAIN/EWOULDBLOCK need to be handled (which, btw, is not in ErrorKind, but O_NONBLOCK is probably not in libstd anyways), but it looks like it means one needs to handle EINTR, which, if you're not familiar with the POSIX API, is very easy to skip.
BTW, this, unfortunately, makes read() cumbersome to use.
The text was updated successfully, but these errors were encountered: