Skip to content

Commit 8e02dc1

Browse files
committed
vmm: Add ResetError type
Signed-off-by: Adam Jensen <[email protected]>
1 parent 43aae6e commit 8e02dc1

File tree

1 file changed

+7
-0
lines changed
  • src/vmm/src/devices/virtio

1 file changed

+7
-0
lines changed

src/vmm/src/devices/virtio/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ pub enum ActivateError {
7070
VhostUser(vhost_user::VhostUserError),
7171
}
7272

73+
// Errors triggered when resetting a VirtioDevice.
74+
#[derive(Debug, thiserror::Error, displaydoc::Display)]
75+
pub enum ResetError {
76+
/// Reset is not implemented for the device.
77+
NotImplemented,
78+
}
79+
7380
/// Trait that helps in upcasting an object to Any
7481
pub trait AsAny {
7582
/// Return the immutable any encapsulated object.

0 commit comments

Comments
 (0)