#[repr(i64)]
pub enum ErrorCode {
Show 80 variants ErrorSystemError, ErrorInvObject, ErrorRsrcLocked, ErrorInvExpr, ErrorRsrcNfound, ErrorInvRsrcName, ErrorInvAccMode, ErrorTmo, ErrorClosingFailed, ErrorInvDegree, ErrorInvJobId, ErrorNsupAttr, ErrorNsupAttrState, ErrorAttrReadonly, ErrorInvLockType, ErrorInvAccessKey, ErrorInvEvent, ErrorInvMech, ErrorHndlrNinstalled, ErrorInvHndlrRef, ErrorInvContext, ErrorQueueOverflow, ErrorNenabled, ErrorAbort, ErrorRawWrProtViol, ErrorRawRdProtViol, ErrorOutpProtViol, ErrorInpProtViol, ErrorBerr, ErrorInProgress, ErrorInvSetup, ErrorQueueError, ErrorAlloc, ErrorInvMask, ErrorIo, ErrorInvFmt, ErrorNsupFmt, ErrorLineInUse, ErrorNsupMode, ErrorSrqNoccurred, ErrorInvSpace, ErrorInvOffset, ErrorInvWidth, ErrorNsupOffset, ErrorNsupVarWidth, ErrorWindowNmapped, ErrorRespPending, ErrorNlisteners, ErrorNcic, ErrorNsysCntlr, ErrorNsupOper, ErrorIntrPending, ErrorAsrlParity, ErrorAsrlFraming, ErrorAsrlOverrun, ErrorTrigNmapped, ErrorNsupAlignOffset, ErrorUserBuf, ErrorRsrcBusy, ErrorNsupWidth, ErrorInvParameter, ErrorInvProt, ErrorInvSize, ErrorWindowMapped, ErrorNimplOper, ErrorInvLength, ErrorInvMode, ErrorSesnNlocked, ErrorMemNshared, ErrorLibraryNfound, ErrorNsupIntr, ErrorInvLine, ErrorFileAccess, ErrorFileIo, ErrorNsupLine, ErrorNsupMech, ErrorIntfNumNconfig, ErrorConnLost, ErrorMachineNavail, ErrorNpermission,
}

Variants

ErrorSystemError

Unknown system error (miscellaneous error).

ErrorInvObject

The given session or object reference is invalid.

ErrorRsrcLocked

Specified type of lock cannot be obtained or specified operation cannot be performed, because the resource is locked.

ErrorInvExpr

Invalid expression specified for search.

ErrorRsrcNfound

Insufficient location information or the device or resource is not present in the system.

ErrorInvRsrcName

Invalid resource reference specified. Parsing error.

ErrorInvAccMode

Invalid access mode.

ErrorTmo

Timeout expired before operation completed.

ErrorClosingFailed

Unable to deallocate the previously allocated data structures corresponding to this session or object reference.

ErrorInvDegree

Specified degree is invalid.

ErrorInvJobId

Specified job identifier is invalid.

ErrorNsupAttr

The specified attribute is not defined or supported by the referenced session, event, or find list.

ErrorNsupAttrState

The specified state of the attribute is not valid, or is not supported as defined by the session, event, or find list.

ErrorAttrReadonly

The specified attribute is Read Only.

ErrorInvLockType

The specified type of lock is not supported by this resource.

ErrorInvAccessKey

The access key to the resource associated with this session is invalid.

ErrorInvEvent

Specified event type is not supported by the resource.

ErrorInvMech

Invalid mechanism specified.

ErrorHndlrNinstalled

A handler is not currently installed for the specified event.

ErrorInvHndlrRef

The given handler reference is invalid.

ErrorInvContext

Specified event context is invalid.

ErrorQueueOverflow

The event queue for the specified type has overflowed (usually due to previous events not having been closed).

ErrorNenabled

The session must be enabled for events of the specified type in order to receive them.

ErrorAbort

The operation was aborted.

ErrorRawWrProtViol

Violation of raw write protocol occurred during transfer.

ErrorRawRdProtViol

Violation of raw read protocol occurred during transfer.

ErrorOutpProtViol

Device reported an output protocol error during transfer.

ErrorInpProtViol

Device reported an input protocol error during transfer.

ErrorBerr

Bus error occurred during transfer.

ErrorInProgress

Unable to queue the asynchronous operation because there is already an operation in progress.

ErrorInvSetup

Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).

ErrorQueueError

Unable to queue asynchronous operation (usually due to the I/O completion event not being enabled or insufficient space in the session’s queue).

ErrorAlloc

Insufficient system resources to perform necessary memory allocation.

ErrorInvMask

Invalid buffer mask specified.

ErrorIo

Could not perform operation because of I/O error.

ErrorInvFmt

A format specifier in the format string is invalid.

ErrorNsupFmt

A format specifier in the format string is not supported.

ErrorLineInUse

The specified trigger line is currently in use.

ErrorNsupMode

The specified mode is not supported by this VISA implementation.

ErrorSrqNoccurred

Service request has not been received for the session.

ErrorInvSpace

Invalid address space specified.

ErrorInvOffset

Invalid offset specified.

ErrorInvWidth

Invalid source or destination width specified.

ErrorNsupOffset

Specified offset is not accessible from this hardware.

ErrorNsupVarWidth

Cannot support source and destination widths that are different.

ErrorWindowNmapped

The specified session is not currently mapped.

ErrorRespPending

A previous response is still pending, causing a multiple query error.

ErrorNlisteners

No Listeners condition is detected (both NRFD and NDAC are deasserted).

ErrorNcic

The interface associated with this session is not currently the controller in charge.

ErrorNsysCntlr

The interface associated with this session is not the system controller.

ErrorNsupOper

The given session or object reference does not support this operation.

ErrorIntrPending

An interrupt is still pending from a previous call.

ErrorAsrlParity

A parity error occurred during transfer.

ErrorAsrlFraming

A framing error occurred during transfer.

ErrorAsrlOverrun

An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.

ErrorTrigNmapped

The path from trigSrc to trigDest is not currently mapped.

ErrorNsupAlignOffset

The specified offset is not properly aligned for the access width of the operation.

ErrorUserBuf

A specified user buffer is not valid or cannot be accessed for the required size.

ErrorRsrcBusy

The resource is valid, but VISA cannot currently access it.

ErrorNsupWidth

Specified width is not supported by this hardware.

ErrorInvParameter

The value of some parameter—which parameter is not known—is invalid.

ErrorInvProt

The protocol specified is invalid.

ErrorInvSize

Invalid size of window specified.

ErrorWindowMapped

The specified session currently contains a mapped window.

ErrorNimplOper

The given operation is not implemented.

ErrorInvLength

Invalid length specified.

ErrorInvMode

The specified mode is invalid.

ErrorSesnNlocked

The current session did not have any lock on the resource.

ErrorMemNshared

The device does not export any memory.

ErrorLibraryNfound

A code library required by VISA could not be located or loaded.

ErrorNsupIntr

The interface cannot generate an interrupt on the requested level or with the requested statusID value.

ErrorInvLine

The value specified by the line parameter is invalid.

ErrorFileAccess

An error occurred while trying to open the specified file. Possible reasons include an invalid path or lack of access rights.

ErrorFileIo

An error occurred while performing I/O on the specified file.

ErrorNsupLine

One of the specified lines (trigSrc or trigDest) is not supported by this VISA implementation, or the combination of lines is not a valid mapping.

ErrorNsupMech

The specified mechanism is not supported for the given event type.

ErrorIntfNumNconfig

The interface type is valid but the specified interface number is not configured.

ErrorConnLost

The connection for the given session has been lost.

ErrorMachineNavail

The remote machine does not exist or is not accepting any connections.

ErrorNpermission

Access to the resource or remote machine is denied. This is due to lack of sufficient privileges for the current user or machine.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Converts this type into the (usually inferred) input type.

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.