Enum MgError

Source
#[repr(i32)]
pub enum MgError {
Show 106 variants MgArgErr = 1, MFullErr = 2, FEof = 4, FIsOpen = 5, FIoErr = 6, FNotFound = 7, FNoPerm = 8, FDiskFull = 9, FDupPath = 10, FtMFOpen = 11, FNotEnabled = 12, RfNotFound = 13, RAddFailed = 14, RNotFound = 15, INotFound = 16, IMemoryErr = 17, DPenNotExist = 18, CfgBadType = 19, CfgTokenNotFound = 20, CfgParseError = 21, CfgAllocError = 22, EcLVSBFormatError = 23, EcLVSBSubrError = 24, EcLVSBNoCodeError = 25, WNullWindow = 26, WDestroyMixup = 27, MenuNullMenu = 28, PAbortJob = 29, PBadPrintRecord = 30, PDriverError = 31, PWindowsError = 32, PMemoryError = 33, PDialogError = 34, PMiscError = 35, DvInvalidRefnum = 36, DvDeviceNotFound = 37, DvParamErr = 38, DvUnitErr = 39, DvOpenErr = 40, DvAbortErr = 41, BogusError = 42, CancelError = 43, OMObjLowErr = 44, OMObjHiErr = 45, OMObjNotInHeapErr = 46, OMOHeapNotKnownErr = 47, OMBadDPIdErr = 48, OMNoDPinTabErr = 49, OMMsgOutOfRangeErr = 50, OMMethodNullErr = 51, OMUnknownMsgErr = 52, MgNotSupported = 53, NcBadAddressErr = 54, NcInProgress = 55, NcTimeOutErr = 56, NcBusyErr = 57, NcNotSupportedErr = 58, NcNetErr = 59, NcAddrInUseErr = 60, NcSysOutOfMem = 61, NcSysConnAbortedErr = 62, NcConnRefusedErr = 63, NcNotConnectedErr = 64, NcAlreadyConnectedErr = 65, NcConnClosedErr = 66, AmInitErr = 67, OccBadOccurrenceErr = 68, OccWaitOnUnBoundHdlrErr = 69, OccFunnyQOverFlowErr = 70, FDataLogTypeConflict = 71, EcLVSBCannotBeCalledFromThread = 72, AmUnrecognizedType = 73, MCorruptErr = 74, EcLVSBErrorMakingTempDLL = 75, EcLVSBOldCIN = 76, FmtTypeMismatch = 81, FmtUnknownConversion = 82, FmtTooFew = 83, FmtTooMany = 84, FmtScanError = 85, LvOLEConvertErr = 87, RtMenuErr = 88, PwdTampered = 89, LvVariantAttrNotFound = 90, LvVariantTypeMismatch = 91, AxEventDataNotAvailable = 92, AxEventStoreNotPresent = 93, AxOccurrenceNotFound = 94, AxEventQueueNotCreated = 95, AxEventInfoNotAvailable = 96, OleNullRefnumPassed = 97, IviInvalidDowncast = 102, IviInvalidClassSesn = 103, NcSockNotMulticast = 108, NcSockNotSinglecast = 109, NcBadMulticastAddr = 110, NcMcastSockReadOnly = 111, NcMcastSockWriteOnly = 112, NcDatagramMsgSzErr = 113, DataCorruptErr = 116, RequireFullPathErr = 117, FolderNotExistErr = 118, NcBtInvalidModeErr = 119, NcBtSetModeErr = 120, MgBtInvalidGUIDStrErr = 121, RVersInFuture = 122,
}
Expand description

MgError is the subset of LabVIEW errors that may occur when dealing with the memory manager So in the context of Rust-LabVIEW-interop these are the kind of labview errors we may trigger within the library

The MgError / MgErrorCode implement From in both directions. Additionally IntoPrimitive and TryFromPrimitive is derived to enable the conversion from and to int primitives.

LabVIEW official general error list: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/errors/general-labview-error-codes.html more complete inofficial lists: https://labviewwiki.org/wiki/LabVIEW_Error_Code_Family / https://labviewwiki.org/wiki/List_of_errors

Accoring to https://www.ni.com/docs/en-US/bundle/labview/page/labview-manager-function-errors.html the memory manager only uses a subset of this huge error list. The subset is implemented in MgError using the official abbreviations.

in https://www.ni.com/docs/en-US/bundle/labview/page/labview-manager-function-errors.html MgError implements Error on top of the MgErrorCode and includes a description

Variants§

§

MgArgErr = 1

§

MFullErr = 2

§

FEof = 4

§

FIsOpen = 5

§

FIoErr = 6

§

FNotFound = 7

§

FNoPerm = 8

§

FDiskFull = 9

§

FDupPath = 10

§

FtMFOpen = 11

§

FNotEnabled = 12

§

RfNotFound = 13

§

RAddFailed = 14

§

RNotFound = 15

§

INotFound = 16

§

IMemoryErr = 17

§

DPenNotExist = 18

§

CfgBadType = 19

§

CfgTokenNotFound = 20

§

CfgParseError = 21

§

CfgAllocError = 22

§

EcLVSBFormatError = 23

§

EcLVSBSubrError = 24

§

EcLVSBNoCodeError = 25

§

WNullWindow = 26

§

WDestroyMixup = 27

§

MenuNullMenu = 28

§

PAbortJob = 29

§

PBadPrintRecord = 30

§

PDriverError = 31

§

PWindowsError = 32

§

PMemoryError = 33

§

PDialogError = 34

§

PMiscError = 35

§

DvInvalidRefnum = 36

§

DvDeviceNotFound = 37

§

DvParamErr = 38

§

DvUnitErr = 39

§

DvOpenErr = 40

§

DvAbortErr = 41

§

BogusError = 42

§

CancelError = 43

§

OMObjLowErr = 44

§

OMObjHiErr = 45

§

OMObjNotInHeapErr = 46

§

OMOHeapNotKnownErr = 47

§

OMBadDPIdErr = 48

§

OMNoDPinTabErr = 49

§

OMMsgOutOfRangeErr = 50

§

OMMethodNullErr = 51

§

OMUnknownMsgErr = 52

§

MgNotSupported = 53

§

NcBadAddressErr = 54

§

NcInProgress = 55

§

NcTimeOutErr = 56

§

NcBusyErr = 57

§

NcNotSupportedErr = 58

§

NcNetErr = 59

§

NcAddrInUseErr = 60

§

NcSysOutOfMem = 61

§

NcSysConnAbortedErr = 62

§

NcConnRefusedErr = 63

§

NcNotConnectedErr = 64

§

NcAlreadyConnectedErr = 65

§

NcConnClosedErr = 66

§

AmInitErr = 67

§

OccBadOccurrenceErr = 68

§

OccWaitOnUnBoundHdlrErr = 69

§

OccFunnyQOverFlowErr = 70

§

FDataLogTypeConflict = 71

§

EcLVSBCannotBeCalledFromThread = 72

§

AmUnrecognizedType = 73

§

MCorruptErr = 74

§

EcLVSBErrorMakingTempDLL = 75

§

EcLVSBOldCIN = 76

§

FmtTypeMismatch = 81

§

FmtUnknownConversion = 82

§

FmtTooFew = 83

§

FmtTooMany = 84

§

FmtScanError = 85

§

LvOLEConvertErr = 87

§

RtMenuErr = 88

§

PwdTampered = 89

§

LvVariantAttrNotFound = 90

§

LvVariantTypeMismatch = 91

§

AxEventDataNotAvailable = 92

§

AxEventStoreNotPresent = 93

§

AxOccurrenceNotFound = 94

§

AxEventQueueNotCreated = 95

§

AxEventInfoNotAvailable = 96

§

OleNullRefnumPassed = 97

§

IviInvalidDowncast = 102

§

IviInvalidClassSesn = 103

§

NcSockNotMulticast = 108

§

NcSockNotSinglecast = 109

§

NcBadMulticastAddr = 110

§

NcMcastSockReadOnly = 111

§

NcMcastSockWriteOnly = 112

§

NcDatagramMsgSzErr = 113

§

DataCorruptErr = 116

§

RequireFullPathErr = 117

§

FolderNotExistErr = 118

§

NcBtInvalidModeErr = 119

§

NcBtSetModeErr = 120

§

MgBtInvalidGUIDStrErr = 121

§

RVersInFuture = 122

Trait Implementations§

Source§

impl Clone for MgError

Source§

fn clone(&self) -> MgError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MgError

Source§

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

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

impl Display for MgError

Source§

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

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

impl Error for MgError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<&MgError> for LVStatusCode

Source§

fn from(errcode: &MgError) -> LVStatusCode

Converts to this type from the input type.
Source§

impl From<MgError> for LVInteropError

Source§

fn from(source: MgError) -> Self

Converts to this type from the input type.
Source§

impl From<MgError> for LVStatusCode

Source§

fn from(errcode: MgError) -> LVStatusCode

Converts to this type from the input type.
Source§

impl From<MgError> for i32

Source§

fn from(enum_value: MgError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MgError

Source§

fn eq(&self, other: &MgError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<LVStatusCode> for MgError

Source§

type Error = LVInteropError

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

fn try_from(status: LVStatusCode) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for MgError

Source§

type Error = TryFromPrimitiveError<MgError>

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

fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for MgError

Source§

impl Copy for MgError

Source§

impl Eq for MgError

Source§

impl StructuralPartialEq for MgError

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.
Source§

impl<T> LVCopy for T
where T: Copy,