crosvm/crosvm_plugin
Shintaro Kawamura ded8ec392e base: tube: send/recv for srteam socket to use io::Result
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>
2023-05-23 10:29:53 +00:00
..
src base: tube: send/recv for srteam socket to use io::Result 2023-05-23 10:29:53 +00:00
Cargo.toml Cargo.toml: upgrade protobuf 2.x -> 3.x 2023-04-28 19:32:01 +00:00
crosvm.h Remove plugin-render-server feature 2022-10-14 20:31:19 +00:00