CompletionCode

Enum CompletionCode 

Source
#[repr(i64)]
pub enum CompletionCode {
Show 20 variants Success = 0, SuccessEventEn = 1_073_676_290, SuccessEventDis = 1_073_676_291, SuccessQueueEmpty = 1_073_676_292, SuccessTermChar = 1_073_676_293, SuccessMaxCnt = 1_073_676_294, WarnQueueOverflow = 1_073_676_300, WarnConfigNloaded = 1_073_676_407, SuccessDevNpresent = 1_073_676_413, SuccessTrigMapped = 1_073_676_414, SuccessQueueNempty = 1_073_676_416, WarnNullObject = 1_073_676_418, WarnNsupAttrState = 1_073_676_420, WarnUnknownStatus = 1_073_676_421, WarnNsupBuf = 1_073_676_424, SuccessNchain = 1_073_676_440, SuccessNestedShared = 1_073_676_441, SuccessNestedExclusive = 1_073_676_442, SuccessSync = 1_073_676_443, WarnExtFuncNimpl = 1_073_676_457,
}

Variants§

§

Success = 0

Operation completed successfully.

§

SuccessEventEn = 1_073_676_290

Specified event is already enabled for at least one of the specified mechanisms.

§

SuccessEventDis = 1_073_676_291

Specified event is already disabled for at least one of the specified mechanisms.

§

SuccessQueueEmpty = 1_073_676_292

Operation completed successfully, but queue was already empty.

§

SuccessTermChar = 1_073_676_293

The specified termination character was read.

§

SuccessMaxCnt = 1_073_676_294

The number of bytes read is equal to the input count.

§

WarnQueueOverflow = 1_073_676_300

The event returned is valid. One or more events that occurred have not been raised because there was no room available on the queue at the time of their occurrence. This could happen because VI_ATTR_MAX_QUEUE_LENGTH is not set to a large enough value for your application and/or events are coming in faster than you are servicing them.

§

WarnConfigNloaded = 1_073_676_407

The specified configuration either does not exist or could not be loaded; using VISA-specified defaults.

§

SuccessDevNpresent = 1_073_676_413

Session opened successfully, but the device at the specified address is not responding.

§

SuccessTrigMapped = 1_073_676_414

The path from trigSrc to trigDest is already mapped.

§

SuccessQueueNempty = 1_073_676_416

Wait terminated successfully on receipt of an event notification. There is still at least one more event occurrence of the requested type(s) available for this session.

§

WarnNullObject = 1_073_676_418

The specified object reference is uninitialized.

§

WarnNsupAttrState = 1_073_676_420

Although the specified state of the attribute is valid, it is not supported by this resource implementation.

§

WarnUnknownStatus = 1_073_676_421

The status code passed to the operation could not be interpreted.

§

WarnNsupBuf = 1_073_676_424

The specified buffer is not supported.

§

SuccessNchain = 1_073_676_440

Event handled successfully. Do not invoke any other handlers on this session for this event.

§

SuccessNestedShared = 1_073_676_441

Operation completed successfully, and this session has nested shared locks.

§

SuccessNestedExclusive = 1_073_676_442

Operation completed successfully, and this session has nested exclusive locks.

§

SuccessSync = 1_073_676_443

Asynchronous operation request was actually performed synchronously.

§

WarnExtFuncNimpl = 1_073_676_457

The operation succeeded, but a lower level driver did not implement the extended functionality.

Trait Implementations§

Source§

impl Clone for CompletionCode

Source§

fn clone(&self) -> CompletionCode

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 CompletionCode

Source§

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

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

impl Display for CompletionCode

Source§

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

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

impl From<CompletionCode> for i64

Source§

fn from(enum_value: CompletionCode) -> Self

Converts to this type from the input type.
Source§

impl Hash for CompletionCode

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 CompletionCode

Source§

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

Source§

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

Source§

fn partial_cmp(&self, other: &CompletionCode) -> 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<AttrStatus> for CompletionCode

Source§

type Error = ErrorCode

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

fn try_from(value: AttrStatus) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for CompletionCode

Source§

type Error = TryFromPrimitiveError<CompletionCode>

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 CompletionCode

Source§

impl Copy for CompletionCode

Source§

impl Eq for CompletionCode

Source§

impl StructuralPartialEq for CompletionCode

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.