Skip to content

Commit

Permalink
vmm: Add ResetError type
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Jensen <[email protected]>
  • Loading branch information
acj committed Jan 31, 2024
1 parent 43aae6e commit 8e02dc1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vmm/src/devices/virtio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ pub enum ActivateError {
VhostUser(vhost_user::VhostUserError),
}

// Errors triggered when resetting a VirtioDevice.
#[derive(Debug, thiserror::Error, displaydoc::Display)]
pub enum ResetError {
/// Reset is not implemented for the device.
NotImplemented,
}

/// Trait that helps in upcasting an object to Any
pub trait AsAny {
/// Return the immutable any encapsulated object.
Expand Down

0 comments on commit 8e02dc1

Please sign in to comment.