#[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
sourceimpl Ord for ErrorCode
impl Ord for ErrorCode
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
sourceimpl PartialOrd<ErrorCode> for ErrorCode
impl PartialOrd<ErrorCode> for ErrorCode
sourcefn partial_cmp(&self, other: &ErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorCode) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl TryFrom<i64> for ErrorCode
impl TryFrom<i64> for ErrorCode
type Error = TryFromPrimitiveError<ErrorCode>
type Error = TryFromPrimitiveError<ErrorCode>
The type returned in the event of a conversion error.
sourcefn try_from(number: i64) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: i64) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ErrorCode
impl TryFromPrimitive for ErrorCode
type Primitive = i64
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more