crosvm/cros_async
Chirantan Ekbote b6c1eba580 cros_async: Don't implement IoSource for pointer types
We can use Pin::as_ref to go from a Pin<P> to a Pin<&<P as
Deref>::Target>, which doesn't require <P as Deref>::Target to be Unpin.
So let's have callers use that method rather than implementing the
IoSource trait for different pointer types.

BUG=none
TEST=unit tests

Change-Id: I45f54e70fe81bc0ceac3f038db47aef50201daa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2387821
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2020-09-12 09:42:36 +00:00
..
src cros_async: Don't implement IoSource for pointer types 2020-09-12 09:42:36 +00:00
Cargo.toml cros_async: Refactor executors 2020-09-12 09:39:26 +00:00