summary refs log tree commit diff
path: root/vhost/src/net.rs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-06-12 10:11:06 +0000
committerAlyssa Ross <hi@alyssa.is>2020-07-02 12:33:05 +0000
commit544cb6bcda8654747e2de3d67c25182f3850ab2c (patch)
treebf72d04500aa85762c4f1b6b4b80153d17077831 /vhost/src/net.rs
parentf57267d7e998ffec48794723b188b35489acfeec (diff)
downloadcrosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.tar
crosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.tar.gz
crosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.tar.bz2
crosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.tar.lz
crosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.tar.xz
crosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.tar.zst
crosvm-544cb6bcda8654747e2de3d67c25182f3850ab2c.zip
Make lots of things Debug
Diffstat (limited to 'vhost/src/net.rs')
-rw-r--r--vhost/src/net.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/vhost/src/net.rs b/vhost/src/net.rs
index 9b59cf2..0e87056 100644
--- a/vhost/src/net.rs
+++ b/vhost/src/net.rs
@@ -18,6 +18,7 @@ static DEVICE: &str = "/dev/vhost-net";
 ///
 /// This provides a simple wrapper around a VHOST_NET file descriptor and
 /// methods that safely run ioctls on that file descriptor.
+#[derive(Debug)]
 pub struct Net<T> {
     // fd must be dropped first, which will stop and tear down the
     // vhost-net worker before GuestMemory can potentially be unmapped.
@@ -96,6 +97,7 @@ pub mod fakes {
 
     const TMP_FILE: &str = "/tmp/crosvm_vhost_test_file";
 
+    #[derive(Debug)]
     pub struct FakeNet<T> {
         fd: File,
         mem: GuestMemory,