#[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