Enum ErrorCode

Source
#[repr(u32)]
pub enum ErrorCode {
Show 99 variants OK = 0, InternalError = 1, NoMemory = 2, NoSupport = 3, UnknownHost = 4, NoConnect = 5, InvalidConn = 6, InvalidDomain = 7, InvalidArg = 8, OperationFailed = 9, GetFailed = 10, PostFailed = 11, HttpError = 12, SexprSerial = 13, NoXen = 14, XenCall = 15, OsType = 16, NoKernel = 17, NoRoot = 18, NoSource = 19, NoTarget = 20, NoName = 21, NoOs = 22, NoDevice = 23, NoXenstore = 24, DriverFull = 25, CallFailed = 26, XmlError = 27, DomExist = 28, OperationDenied = 29, OpenFailed = 30, ReadFailed = 31, ParseFailed = 32, ConfSyntax = 33, WriteFailed = 34, XmlDetail = 35, InvalidNetwork = 36, NetworkExist = 37, SystemError = 38, Rpc = 39, GnutlsError = 40, VirWarNoNetwork = 41, NoDomain = 42, NoNetwork = 43, InvalidMac = 44, AuthFailed = 45, InvalidStoragePool = 46, InvalidStorageVol = 47, VirWarNoStorage = 48, NoStoragePool = 49, NoStorageVol = 50, VirWarNoNode = 51, InvalidNodeDevice = 52, NoNodeDevice = 53, NoSecurityModel = 54, OperationInvalid = 55, VirWarNoInterface = 56, NoInterface = 57, InvalidInterface = 58, MultipleInterfaces = 59, VirWarNoNwfilter = 60, InvalidNwfilter = 61, NoNwfilter = 62, BuildFirewall = 63, VirWarNoSecret = 64, InvalidSecret = 65, NoSecret = 66, ConfigUnsupported = 67, OperationTimeout = 68, MigratePersistFailed = 69, HookScriptFailed = 70, InvalidDomainSnapshot = 71, NoDomainSnapshot = 72, InvalidStream = 73, ArgumentUnsupported = 74, StorageProbeFailed = 75, StoragePoolBuilt = 76, SnapshotRevertRisky = 77, OperationAborted = 78, AuthCancelled = 79, NoDomainMetadata = 80, MigrateUnsafe = 81, Overflow = 82, BlockCopyActive = 83, OperationUnsupported = 84, Ssh = 85, AgentUnresponsive = 86, ResourceBusy = 87, AccessDenied = 88, DbusService = 89, StorageVolExist = 90, CpuIncompatible = 91, XmlInvalidSchema = 92, MigrateFinishOk = 93, AuthUnavailable = 94, NoServer = 95, NoClient = 96, AgentUnsynced = 97, Libssh = 98,
}

Variants§

§

OK = 0

§

InternalError = 1

internal error

§

NoMemory = 2

memory allocation failure

§

NoSupport = 3

no support for this function

§

UnknownHost = 4

could not resolve hostname

§

NoConnect = 5

can’t connect to hypervisor

§

InvalidConn = 6

invalid connection object

§

InvalidDomain = 7

invalid domain object

§

InvalidArg = 8

invalid function argument

§

OperationFailed = 9

a command to hypervisor failed

§

GetFailed = 10

a HTTP GET command to failed

§

PostFailed = 11

a HTTP POST command to failed

§

HttpError = 12

unexpected HTTP error code

§

SexprSerial = 13

failure to serialize an S-Expr

§

NoXen = 14

could not open Xen hypervisor control

§

XenCall = 15

failure doing an hypervisor call

§

OsType = 16

unknown OS type

§

NoKernel = 17

missing kernel information

§

NoRoot = 18

missing root device information

§

NoSource = 19

missing source device information

§

NoTarget = 20

missing target device information

§

NoName = 21

missing domain name information

§

NoOs = 22

missing domain OS information

§

NoDevice = 23

missing domain devices information

§

NoXenstore = 24

could not open Xen Store control

§

DriverFull = 25

too many drivers registered

§

CallFailed = 26

not supported by the drivers (DEPRECATED)

§

XmlError = 27

an XML description is not well formed or broken

§

DomExist = 28

the domain already exist

§

OperationDenied = 29

operation forbidden on read-only connections

§

OpenFailed = 30

failed to open a conf file

§

ReadFailed = 31

failed to read a conf file

§

ParseFailed = 32

failed to parse a conf file

§

ConfSyntax = 33

failed to parse the syntax of a conf file

§

WriteFailed = 34

failed to write a conf file

§

XmlDetail = 35

detail of an XML error

§

InvalidNetwork = 36

invalid network object

§

NetworkExist = 37

the network already exist

§

SystemError = 38

general system call failure

§

Rpc = 39

some sort of RPC error

§

GnutlsError = 40

error from a GNUTLS call

§

VirWarNoNetwork = 41

failed to start network

§

NoDomain = 42

domain not found or unexpectedly disappeared

§

NoNetwork = 43

network not found

§

InvalidMac = 44

invalid MAC address

§

AuthFailed = 45

authentication failed

§

InvalidStoragePool = 46

invalid storage pool object

§

InvalidStorageVol = 47

invalid storage vol object

§

VirWarNoStorage = 48

failed to start storage

§

NoStoragePool = 49

storage pool not found

§

NoStorageVol = 50

storage volume not found

§

VirWarNoNode = 51

failed to start node driver

§

InvalidNodeDevice = 52

invalid node device object

§

NoNodeDevice = 53

node device not found

§

NoSecurityModel = 54

security model not found

§

OperationInvalid = 55

operation is not applicable at this time

§

VirWarNoInterface = 56

failed to start interface driver

§

NoInterface = 57

interface driver not running

§

InvalidInterface = 58

invalid interface object

§

MultipleInterfaces = 59

more than one matching interface found

§

VirWarNoNwfilter = 60

failed to start nwfilter driver

§

InvalidNwfilter = 61

invalid nwfilter object

§

NoNwfilter = 62

nw filter pool not found

§

BuildFirewall = 63

nw filter pool not found

§

VirWarNoSecret = 64

failed to start secret storage

§

InvalidSecret = 65

invalid secret

§

NoSecret = 66

secret not found

§

ConfigUnsupported = 67

unsupported configuration construct

§

OperationTimeout = 68

timeout occurred during operation

§

MigratePersistFailed = 69

a migration worked, but making the VM persist on the dest host failed

§

HookScriptFailed = 70

a synchronous hook script failed

§

InvalidDomainSnapshot = 71

invalid domain snapshot

§

NoDomainSnapshot = 72

domain snapshot not found

§

InvalidStream = 73

stream pointer not valid

§

ArgumentUnsupported = 74

valid API use but unsupported by the given driver

§

StorageProbeFailed = 75

storage pool probe failed

§

StoragePoolBuilt = 76

storage pool already built

§

SnapshotRevertRisky = 77

force was not requested for a risky domain snapshot revert

§

OperationAborted = 78

operation on a domain was canceled/aborted by user

§

AuthCancelled = 79

authentication cancelled

§

NoDomainMetadata = 80

The metadata is not present

§

MigrateUnsafe = 81

Migration is not safe

§

Overflow = 82

integer overflow

§

BlockCopyActive = 83

action prevented by block copy job

§

OperationUnsupported = 84

The requested operation is not supported

§

Ssh = 85

error in ssh transport driver

§

AgentUnresponsive = 86

guest agent is unresponsive, not running or not usable

§

ResourceBusy = 87

resource is already in use

§

AccessDenied = 88

operation on the object/resource was denied

§

DbusService = 89

error from a dbus service

§

StorageVolExist = 90

the storage vol already exists

§

CpuIncompatible = 91

given CPU is incompatible with host CP

§

XmlInvalidSchema = 92

XML document doesn’t validate against schema

§

MigrateFinishOk = 93

Finish API succeeded but it is expected to return NULL

§

AuthUnavailable = 94

authentication unavailable

§

NoServer = 95

Server was not found

§

NoClient = 96

Client was not found

§

AgentUnsynced = 97

guest agent replies with wrong id to guest-sync command

§

Libssh = 98

error in libssh transport driver

Trait Implementations§

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<i32> for ErrorCode

Source§

fn from(v: i32) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.