crosvm/msg_socket
Chirantan Ekbote a54c64302a msg_socket: Change trait type parameters to associated types
The `MsgSender` and `MsgReceiver` traits take a type parameter for the
message to be sent / received.  However this ends up trickling down to
every user of these traits, who need to add these type parameters
whenever they want to use the trait.

Change the type parameters to associated types instead.  The associated
types keep the same trait bounds but now users of the traits don't need
to care about the exact message being sent / received.

BUG=none
TEST=cargo test

Change-Id: I733a21877cbe49b7904040b8cc6c3436d5e3439f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1993160
Tested-by: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Auto-Submit: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
2020-01-12 05:54:05 +00:00
..
msg_on_socket_derive
src msg_socket: Change trait type parameters to associated types 2020-01-12 05:54:05 +00:00
tests Extracts BalloonAdjust from VmRequest. 2019-04-25 00:59:51 -07:00
Cargo.toml