#[repr(i64)]
pub enum ErrorCode {
Show 80 variants ErrorSystemError = -1_073_807_360, ErrorInvObject = -1_073_807_346, ErrorRsrcLocked = -1_073_807_345, ErrorInvExpr = -1_073_807_344, ErrorRsrcNfound = -1_073_807_343, ErrorInvRsrcName = -1_073_807_342, ErrorInvAccMode = -1_073_807_341, ErrorTmo = -1_073_807_339, ErrorClosingFailed = -1_073_807_338, ErrorInvDegree = -1_073_807_333, ErrorInvJobId = -1_073_807_332, ErrorNsupAttr = -1_073_807_331, ErrorNsupAttrState = -1_073_807_330, ErrorAttrReadonly = -1_073_807_329, ErrorInvLockType = -1_073_807_328, ErrorInvAccessKey = -1_073_807_327, ErrorInvEvent = -1_073_807_322, ErrorInvMech = -1_073_807_321, ErrorHndlrNinstalled = -1_073_807_320, ErrorInvHndlrRef = -1_073_807_319, ErrorInvContext = -1_073_807_318, ErrorQueueOverflow = -1_073_807_315, ErrorNenabled = -1_073_807_313, ErrorAbort = -1_073_807_312, ErrorRawWrProtViol = -1_073_807_308, ErrorRawRdProtViol = -1_073_807_307, ErrorOutpProtViol = -1_073_807_306, ErrorInpProtViol = -1_073_807_305, ErrorBerr = -1_073_807_304, ErrorInProgress = -1_073_807_303, ErrorInvSetup = -1_073_807_302, ErrorQueueError = -1_073_807_301, ErrorAlloc = -1_073_807_300, ErrorInvMask = -1_073_807_299, ErrorIo = -1_073_807_298, ErrorInvFmt = -1_073_807_297, ErrorNsupFmt = -1_073_807_295, ErrorLineInUse = -1_073_807_294, ErrorNsupMode = -1_073_807_290, ErrorSrqNoccurred = -1_073_807_286, ErrorInvSpace = -1_073_807_282, ErrorInvOffset = -1_073_807_279, ErrorInvWidth = -1_073_807_278, ErrorNsupOffset = -1_073_807_276, ErrorNsupVarWidth = -1_073_807_275, ErrorWindowNmapped = -1_073_807_273, ErrorRespPending = -1_073_807_271, ErrorNlisteners = -1_073_807_265, ErrorNcic = -1_073_807_264, ErrorNsysCntlr = -1_073_807_263, ErrorNsupOper = -1_073_807_257, ErrorIntrPending = -1_073_807_256, ErrorAsrlParity = -1_073_807_254, ErrorAsrlFraming = -1_073_807_253, ErrorAsrlOverrun = -1_073_807_252, ErrorTrigNmapped = -1_073_807_250, ErrorNsupAlignOffset = -1_073_807_248, ErrorUserBuf = -1_073_807_247, ErrorRsrcBusy = -1_073_807_246, ErrorNsupWidth = -1_073_807_242, ErrorInvParameter = -1_073_807_240, ErrorInvProt = -1_073_807_239, ErrorInvSize = -1_073_807_237, ErrorWindowMapped = -1_073_807_232, ErrorNimplOper = -1_073_807_231, ErrorInvLength = -1_073_807_229, ErrorInvMode = -1_073_807_215, ErrorSesnNlocked = -1_073_807_204, ErrorMemNshared = -1_073_807_203, ErrorLibraryNfound = -1_073_807_202, ErrorNsupIntr = -1_073_807_201, ErrorInvLine = -1_073_807_200, ErrorFileAccess = -1_073_807_199, ErrorFileIo = -1_073_807_198, ErrorNsupLine = -1_073_807_197, ErrorNsupMech = -1_073_807_196, ErrorIntfNumNconfig = -1_073_807_195, ErrorConnLost = -1_073_807_194, ErrorMachineNavail = -1_073_807_193, ErrorNpermission = -1_073_807_192,
}

Variants§

§

ErrorSystemError = -1_073_807_360

Unknown system error (miscellaneous error).

§

ErrorInvObject = -1_073_807_346

The given session or object reference is invalid.

§

ErrorRsrcLocked = -1_073_807_345

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

§

ErrorInvExpr = -1_073_807_344

Invalid expression specified for search.

§

ErrorRsrcNfound = -1_073_807_343

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

§

ErrorInvRsrcName = -1_073_807_342

Invalid resource reference specified. Parsing error.

§

ErrorInvAccMode = -1_073_807_341

Invalid access mode.

§

ErrorTmo = -1_073_807_339

Timeout expired before operation completed.

§

ErrorClosingFailed = -1_073_807_338

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

§

ErrorInvDegree = -1_073_807_333

Specified degree is invalid.

§

ErrorInvJobId = -1_073_807_332

Specified job identifier is invalid.

§

ErrorNsupAttr = -1_073_807_331

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

§

ErrorNsupAttrState = -1_073_807_330

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

§

ErrorAttrReadonly = -1_073_807_329

The specified attribute is Read Only.

§

ErrorInvLockType = -1_073_807_328

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

§

ErrorInvAccessKey = -1_073_807_327

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

§

ErrorInvEvent = -1_073_807_322

Specified event type is not supported by the resource.

§

ErrorInvMech = -1_073_807_321

Invalid mechanism specified.

§

ErrorHndlrNinstalled = -1_073_807_320

A handler is not currently installed for the specified event.

§

ErrorInvHndlrRef = -1_073_807_319

The given handler reference is invalid.

§

ErrorInvContext = -1_073_807_318

Specified event context is invalid.

§

ErrorQueueOverflow = -1_073_807_315

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

§

ErrorNenabled = -1_073_807_313

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

§

ErrorAbort = -1_073_807_312

The operation was aborted.

§

ErrorRawWrProtViol = -1_073_807_308

Violation of raw write protocol occurred during transfer.

§

ErrorRawRdProtViol = -1_073_807_307

Violation of raw read protocol occurred during transfer.

§

ErrorOutpProtViol = -1_073_807_306

Device reported an output protocol error during transfer.

§

ErrorInpProtViol = -1_073_807_305

Device reported an input protocol error during transfer.

§

ErrorBerr = -1_073_807_304

Bus error occurred during transfer.

§

ErrorInProgress = -1_073_807_303

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

§

ErrorInvSetup = -1_073_807_302

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

§

ErrorQueueError = -1_073_807_301

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 = -1_073_807_300

Insufficient system resources to perform necessary memory allocation.

§

ErrorInvMask = -1_073_807_299

Invalid buffer mask specified.

§

ErrorIo = -1_073_807_298

Could not perform operation because of I/O error.

§

ErrorInvFmt = -1_073_807_297

A format specifier in the format string is invalid.

§

ErrorNsupFmt = -1_073_807_295

A format specifier in the format string is not supported.

§

ErrorLineInUse = -1_073_807_294

The specified trigger line is currently in use.

§

ErrorNsupMode = -1_073_807_290

The specified mode is not supported by this VISA implementation.

§

ErrorSrqNoccurred = -1_073_807_286

Service request has not been received for the session.

§

ErrorInvSpace = -1_073_807_282

Invalid address space specified.

§

ErrorInvOffset = -1_073_807_279

Invalid offset specified.

§

ErrorInvWidth = -1_073_807_278

Invalid source or destination width specified.

§

ErrorNsupOffset = -1_073_807_276

Specified offset is not accessible from this hardware.

§

ErrorNsupVarWidth = -1_073_807_275

Cannot support source and destination widths that are different.

§

ErrorWindowNmapped = -1_073_807_273

The specified session is not currently mapped.

§

ErrorRespPending = -1_073_807_271

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

§

ErrorNlisteners = -1_073_807_265

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

§

ErrorNcic = -1_073_807_264

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

§

ErrorNsysCntlr = -1_073_807_263

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

§

ErrorNsupOper = -1_073_807_257

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

§

ErrorIntrPending = -1_073_807_256

An interrupt is still pending from a previous call.

§

ErrorAsrlParity = -1_073_807_254

A parity error occurred during transfer.

§

ErrorAsrlFraming = -1_073_807_253

A framing error occurred during transfer.

§

ErrorAsrlOverrun = -1_073_807_252

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

§

ErrorTrigNmapped = -1_073_807_250

The path from trigSrc to trigDest is not currently mapped.

§

ErrorNsupAlignOffset = -1_073_807_248

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

§

ErrorUserBuf = -1_073_807_247

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

§

ErrorRsrcBusy = -1_073_807_246

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

§

ErrorNsupWidth = -1_073_807_242

Specified width is not supported by this hardware.

§

ErrorInvParameter = -1_073_807_240

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

§

ErrorInvProt = -1_073_807_239

The protocol specified is invalid.

§

ErrorInvSize = -1_073_807_237

Invalid size of window specified.

§

ErrorWindowMapped = -1_073_807_232

The specified session currently contains a mapped window.

§

ErrorNimplOper = -1_073_807_231

The given operation is not implemented.

§

ErrorInvLength = -1_073_807_229

Invalid length specified.

§

ErrorInvMode = -1_073_807_215

The specified mode is invalid.

§

ErrorSesnNlocked = -1_073_807_204

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

§

ErrorMemNshared = -1_073_807_203

The device does not export any memory.

§

ErrorLibraryNfound = -1_073_807_202

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

§

ErrorNsupIntr = -1_073_807_201

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

§

ErrorInvLine = -1_073_807_200

The value specified by the line parameter is invalid.

§

ErrorFileAccess = -1_073_807_199

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

§

ErrorFileIo = -1_073_807_198

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

§

ErrorNsupLine = -1_073_807_197

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 = -1_073_807_196

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

§

ErrorIntfNumNconfig = -1_073_807_195

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

§

ErrorConnLost = -1_073_807_194

The connection for the given session has been lost.

§

ErrorMachineNavail = -1_073_807_193

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

§

ErrorNpermission = -1_073_807_192

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§

source§

impl Clone for ErrorCode

source§

fn clone(&self) -> ErrorCode

Returns a copy 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 ErrorCode

source§

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

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

impl Display for ErrorCode

source§

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

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

impl From<Error> for ErrorCode

source§

fn from(s: Error) -> Self

Converts to this type from the input type.
source§

impl From<ErrorCode> for Error

source§

fn from(s: ErrorCode) -> Self

Converts to this type from the input type.
source§

impl From<ErrorCode> for i64

source§

fn from(enum_value: ErrorCode) -> Self

Converts to this type from the input type.
source§

impl Hash for ErrorCode

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

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

impl Ord for ErrorCode

source§

fn cmp(&self, other: &ErrorCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ErrorCode

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

impl PartialOrd for ErrorCode

source§

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 · source§

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 · source§

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
1.0.0 · source§

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

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

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

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

impl TryFrom<i64> for ErrorCode

§

type Error = TryFromPrimitiveError<ErrorCode>

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

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

Performs the conversion.
source§

impl TryFromPrimitive for ErrorCode

§

type Primitive = i64

§

type Error = TryFromPrimitiveError<ErrorCode>

source§

const NAME: &'static str = "ErrorCode"

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for ErrorCode

source§

impl Eq for ErrorCode

source§

impl StructuralPartialEq for ErrorCode

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

§

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§

default 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>,

§

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>,

§

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.