ErrorCode

Enum ErrorCode 

Source
#[repr(i64)]
pub enum ErrorCode {
Show 80 variants ErrorSystemError = 3_221_159_936, ErrorInvObject = 3_221_159_950, ErrorRsrcLocked = 3_221_159_951, ErrorInvExpr = 3_221_159_952, ErrorRsrcNfound = 3_221_159_953, ErrorInvRsrcName = 3_221_159_954, ErrorInvAccMode = 3_221_159_955, ErrorTmo = 3_221_159_957, ErrorClosingFailed = 3_221_159_958, ErrorInvDegree = 3_221_159_963, ErrorInvJobId = 3_221_159_964, ErrorNsupAttr = 3_221_159_965, ErrorNsupAttrState = 3_221_159_966, ErrorAttrReadonly = 3_221_159_967, ErrorInvLockType = 3_221_159_968, ErrorInvAccessKey = 3_221_159_969, ErrorInvEvent = 3_221_159_974, ErrorInvMech = 3_221_159_975, ErrorHndlrNinstalled = 3_221_159_976, ErrorInvHndlrRef = 3_221_159_977, ErrorInvContext = 3_221_159_978, ErrorQueueOverflow = 3_221_159_981, ErrorNenabled = 3_221_159_983, ErrorAbort = 3_221_159_984, ErrorRawWrProtViol = 3_221_159_988, ErrorRawRdProtViol = 3_221_159_989, ErrorOutpProtViol = 3_221_159_990, ErrorInpProtViol = 3_221_159_991, ErrorBerr = 3_221_159_992, ErrorInProgress = 3_221_159_993, ErrorInvSetup = 3_221_159_994, ErrorQueueError = 3_221_159_995, ErrorAlloc = 3_221_159_996, ErrorInvMask = 3_221_159_997, ErrorIo = 3_221_159_998, ErrorInvFmt = 3_221_159_999, ErrorNsupFmt = 3_221_160_001, ErrorLineInUse = 3_221_160_002, ErrorNsupMode = 3_221_160_006, ErrorSrqNoccurred = 3_221_160_010, ErrorInvSpace = 3_221_160_014, ErrorInvOffset = 3_221_160_017, ErrorInvWidth = 3_221_160_018, ErrorNsupOffset = 3_221_160_020, ErrorNsupVarWidth = 3_221_160_021, ErrorWindowNmapped = 3_221_160_023, ErrorRespPending = 3_221_160_025, ErrorNlisteners = 3_221_160_031, ErrorNcic = 3_221_160_032, ErrorNsysCntlr = 3_221_160_033, ErrorNsupOper = 3_221_160_039, ErrorIntrPending = 3_221_160_040, ErrorAsrlParity = 3_221_160_042, ErrorAsrlFraming = 3_221_160_043, ErrorAsrlOverrun = 3_221_160_044, ErrorTrigNmapped = 3_221_160_046, ErrorNsupAlignOffset = 3_221_160_048, ErrorUserBuf = 3_221_160_049, ErrorRsrcBusy = 3_221_160_050, ErrorNsupWidth = 3_221_160_054, ErrorInvParameter = 3_221_160_056, ErrorInvProt = 3_221_160_057, ErrorInvSize = 3_221_160_059, ErrorWindowMapped = 3_221_160_064, ErrorNimplOper = 3_221_160_065, ErrorInvLength = 3_221_160_067, ErrorInvMode = 3_221_160_081, ErrorSesnNlocked = 3_221_160_092, ErrorMemNshared = 3_221_160_093, ErrorLibraryNfound = 3_221_160_094, ErrorNsupIntr = 3_221_160_095, ErrorInvLine = 3_221_160_096, ErrorFileAccess = 3_221_160_097, ErrorFileIo = 3_221_160_098, ErrorNsupLine = 3_221_160_099, ErrorNsupMech = 3_221_160_100, ErrorIntfNumNconfig = 3_221_160_101, ErrorConnLost = 3_221_160_102, ErrorMachineNavail = 3_221_160_103, ErrorNpermission = 3_221_160_104,
}

Variants§

§

ErrorSystemError = 3_221_159_936

Unknown system error (miscellaneous error).

§

ErrorInvObject = 3_221_159_950

The given session or object reference is invalid.

§

ErrorRsrcLocked = 3_221_159_951

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

§

ErrorInvExpr = 3_221_159_952

Invalid expression specified for search.

§

ErrorRsrcNfound = 3_221_159_953

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

§

ErrorInvRsrcName = 3_221_159_954

Invalid resource reference specified. Parsing error.

§

ErrorInvAccMode = 3_221_159_955

Invalid access mode.

§

ErrorTmo = 3_221_159_957

Timeout expired before operation completed.

§

ErrorClosingFailed = 3_221_159_958

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

§

ErrorInvDegree = 3_221_159_963

Specified degree is invalid.

§

ErrorInvJobId = 3_221_159_964

Specified job identifier is invalid.

§

ErrorNsupAttr = 3_221_159_965

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

§

ErrorNsupAttrState = 3_221_159_966

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

§

ErrorAttrReadonly = 3_221_159_967

The specified attribute is Read Only.

§

ErrorInvLockType = 3_221_159_968

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

§

ErrorInvAccessKey = 3_221_159_969

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

§

ErrorInvEvent = 3_221_159_974

Specified event type is not supported by the resource.

§

ErrorInvMech = 3_221_159_975

Invalid mechanism specified.

§

ErrorHndlrNinstalled = 3_221_159_976

A handler is not currently installed for the specified event.

§

ErrorInvHndlrRef = 3_221_159_977

The given handler reference is invalid.

§

ErrorInvContext = 3_221_159_978

Specified event context is invalid.

§

ErrorQueueOverflow = 3_221_159_981

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

§

ErrorNenabled = 3_221_159_983

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

§

ErrorAbort = 3_221_159_984

The operation was aborted.

§

ErrorRawWrProtViol = 3_221_159_988

Violation of raw write protocol occurred during transfer.

§

ErrorRawRdProtViol = 3_221_159_989

Violation of raw read protocol occurred during transfer.

§

ErrorOutpProtViol = 3_221_159_990

Device reported an output protocol error during transfer.

§

ErrorInpProtViol = 3_221_159_991

Device reported an input protocol error during transfer.

§

ErrorBerr = 3_221_159_992

Bus error occurred during transfer.

§

ErrorInProgress = 3_221_159_993

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

§

ErrorInvSetup = 3_221_159_994

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

§

ErrorQueueError = 3_221_159_995

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 = 3_221_159_996

Insufficient system resources to perform necessary memory allocation.

§

ErrorInvMask = 3_221_159_997

Invalid buffer mask specified.

§

ErrorIo = 3_221_159_998

Could not perform operation because of I/O error.

§

ErrorInvFmt = 3_221_159_999

A format specifier in the format string is invalid.

§

ErrorNsupFmt = 3_221_160_001

A format specifier in the format string is not supported.

§

ErrorLineInUse = 3_221_160_002

The specified trigger line is currently in use.

§

ErrorNsupMode = 3_221_160_006

The specified mode is not supported by this VISA implementation.

§

ErrorSrqNoccurred = 3_221_160_010

Service request has not been received for the session.

§

ErrorInvSpace = 3_221_160_014

Invalid address space specified.

§

ErrorInvOffset = 3_221_160_017

Invalid offset specified.

§

ErrorInvWidth = 3_221_160_018

Invalid source or destination width specified.

§

ErrorNsupOffset = 3_221_160_020

Specified offset is not accessible from this hardware.

§

ErrorNsupVarWidth = 3_221_160_021

Cannot support source and destination widths that are different.

§

ErrorWindowNmapped = 3_221_160_023

The specified session is not currently mapped.

§

ErrorRespPending = 3_221_160_025

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

§

ErrorNlisteners = 3_221_160_031

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

§

ErrorNcic = 3_221_160_032

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

§

ErrorNsysCntlr = 3_221_160_033

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

§

ErrorNsupOper = 3_221_160_039

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

§

ErrorIntrPending = 3_221_160_040

An interrupt is still pending from a previous call.

§

ErrorAsrlParity = 3_221_160_042

A parity error occurred during transfer.

§

ErrorAsrlFraming = 3_221_160_043

A framing error occurred during transfer.

§

ErrorAsrlOverrun = 3_221_160_044

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

§

ErrorTrigNmapped = 3_221_160_046

The path from trigSrc to trigDest is not currently mapped.

§

ErrorNsupAlignOffset = 3_221_160_048

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

§

ErrorUserBuf = 3_221_160_049

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

§

ErrorRsrcBusy = 3_221_160_050

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

§

ErrorNsupWidth = 3_221_160_054

Specified width is not supported by this hardware.

§

ErrorInvParameter = 3_221_160_056

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

§

ErrorInvProt = 3_221_160_057

The protocol specified is invalid.

§

ErrorInvSize = 3_221_160_059

Invalid size of window specified.

§

ErrorWindowMapped = 3_221_160_064

The specified session currently contains a mapped window.

§

ErrorNimplOper = 3_221_160_065

The given operation is not implemented.

§

ErrorInvLength = 3_221_160_067

Invalid length specified.

§

ErrorInvMode = 3_221_160_081

The specified mode is invalid.

§

ErrorSesnNlocked = 3_221_160_092

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

§

ErrorMemNshared = 3_221_160_093

The device does not export any memory.

§

ErrorLibraryNfound = 3_221_160_094

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

§

ErrorNsupIntr = 3_221_160_095

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

§

ErrorInvLine = 3_221_160_096

The value specified by the line parameter is invalid.

§

ErrorFileAccess = 3_221_160_097

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

§

ErrorFileIo = 3_221_160_098

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

§

ErrorNsupLine = 3_221_160_099

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 = 3_221_160_100

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

§

ErrorIntfNumNconfig = 3_221_160_101

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

§

ErrorConnLost = 3_221_160_102

The connection for the given session has been lost.

§

ErrorMachineNavail = 3_221_160_103

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

§

ErrorNpermission = 3_221_160_104

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

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

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &ErrorCode) -> 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 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<i64> for ErrorCode

Source§

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

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