mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-27 23:48:55 +00:00
Making the device configuration polymorphic requires the device struct to exist before the device parameters are checked and assigned to the struct fields. Which means wrapping the struct fields by Option unnecessarily or introducing other data confusion. Let's extract the device configuration from traits to plain functions in order to keep the device struct's unencumbered. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> |
||
|---|---|---|
| .. | ||
| gpio | ||
| i2c | ||
| rng | ||
| scmi | ||
| scsi | ||
| vsock | ||