mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: net_util: streamline error Display::fmt()
The changes were mostly automatically applied using the Python script mentioned in the first commit of this series. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
72c8178335
commit
67896333e3
+5
-5
@@ -22,21 +22,21 @@ use crate::mac::MAC_ADDR_LEN;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("Couldn't open /dev/net/tun: {0}")]
|
||||
#[error("Couldn't open /dev/net/tun")]
|
||||
OpenTun(#[source] IoError),
|
||||
#[error("Unable to configure tap interface: {0}")]
|
||||
#[error("Unable to configure tap interface")]
|
||||
ConfigureTap(#[source] IoError),
|
||||
#[error("Unable to retrieve features: {0}")]
|
||||
#[error("Unable to retrieve features")]
|
||||
GetFeatures(#[source] IoError),
|
||||
#[error("Missing multiqueue support in the kernel")]
|
||||
MultiQueueKernelSupport,
|
||||
#[error("ioctl ({0}) failed: {1}")]
|
||||
IoctlError(c_ulong, #[source] IoError),
|
||||
#[error("Failed to create a socket: {0}")]
|
||||
#[error("Failed to create a socket")]
|
||||
NetUtil(#[source] NetUtilError),
|
||||
#[error("Invalid interface name")]
|
||||
InvalidIfname,
|
||||
#[error("Error parsing MAC data: {0}")]
|
||||
#[error("Error parsing MAC data")]
|
||||
MacParsing(#[source] IoError),
|
||||
#[error("Invalid netmask")]
|
||||
InvalidNetmask,
|
||||
|
||||
Reference in New Issue
Block a user