rcore-os / virtio-drivers

VirtIO guest drivers in Rust.
MIT License
209 stars 63 forks source link

Add SomeTransport, an enum wrapping either an MMIO or PCI transport. #155

Open qwandor opened 2 months ago

qwandor commented 2 months ago

This lets clients write code that works for a VirtIO device with either transport without generics. Dynamic dispatch isn't possible because Transport isn't object-safe.