crosvm/cros_async/src
Noah Gold b3fca20e24 Refactor cros_async interface to avoid RawFd.
Instead of creating IoSourceExt from AsRawFd implementers, we've
switched to creating from a marker trait `IntoAsync`. This lets us use
other types like RawDescriptor easily with this crate.  By using the
marker, we also provide some type safety by requiring consumers of
IoSourceExt to declare that their type is expected to work with async
operations. This way we can provide stronger guarantees that an async
IO trait object will behave in a reasonable way.

This CL also purges the cros_async -> base and io_uring -> base
references, and provides the base types needed to add new async
primitives to base.

BUG=none
TEST=builds

Change-Id: I0b0ce6ca7938b22ae8e8fb4e604439f0292678f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2504481
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Noah Gold <nkgold@google.com>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
2020-11-10 11:40:50 +00:00
..
uring_futures Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
complete.rs cros_async: Make raw waker Send + Sync 2020-07-15 09:28:23 +00:00
event.rs Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
executor.rs cros_async: Make raw waker Send + Sync 2020-07-15 09:28:23 +00:00
fd_executor.rs Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
io_ext.rs Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
io_source.rs Replace PollOrRing w/ async trait IoSourceExt. 2020-10-16 02:15:40 +00:00
lib.rs Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
poll_source.rs Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
select.rs cros_async: Make raw waker Send + Sync 2020-07-15 09:28:23 +00:00
uring_executor.rs Refactor cros_async interface to avoid RawFd. 2020-11-10 11:40:50 +00:00
uring_mem.rs cros_async: MemRegion: use u64 for offset 2020-06-29 01:46:04 +00:00
waker.rs cros_async: Refactor executors 2020-09-12 09:39:26 +00:00