mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
ded8ec392e
It is confusing that `Tube::recv()` may return `Error::Send`. This was because `TubeError::Recv` accepts `std::io::Error` only while socket related raw function in base crate returns `base::Error`. `TubeError::Recv` and `Tube::Send` should accept either of `base::Error` or `std::io::Error` but the same one. `std::io::Error` is preferred because send/recv on `ScmSocket` are I/O. `std::io::Error::raw_os_error()` always returns `Some` if the error was constructed via `std::io::Error::last_os_error()`. BUG=b:276384648 TEST=tools/dev_container tools/run_tests2 Change-Id: I73509c7173b4b0e5e7ed939ef20e36db2f16ade3 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4546494 Commit-Queue: Shin Kawamura <kawasin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Auto-Submit: Shin Kawamura <kawasin@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
crosvm.h |