Status

Enum Status 

Source
#[repr(i32)]
pub enum Status {
Show 134 variants Ok = 0, Error = -1, LibraryNotFound = -2, NoImplementation = -3, ApiNotInitialized = -4, InvalidArgument = -5, NvidiaDeviceNotFound = -6, EndEnumeration = -7, InvalidHandle = -8, IncompatibleStructVersion = -9, HandleInvalidated = -10, OpenglContextNotCurrent = -11, InvalidPointer = -14, NoGlExpert = -12, InstrumentationDisabled = -13, NoGlNsight = -15, ExpectedLogicalGpuHandle = -100, ExpectedPhysicalGpuHandle = -101, ExpectedDisplayHandle = -102, InvalidCombination = -103, NotSupported = -104, PortidNotFound = -105, ExpectedUnattachedDisplayHandle = -106, InvalidPerfLevel = -107, DeviceBusy = -108, NvPersistFileNotFound = -109, PersistDataNotFound = -110, ExpectedTvDisplay = -111, ExpectedTvDisplayOnDconnector = -112, NoActiveSliTopology = -113, SliRenderingModeNotallowed = -114, ExpectedDigitalFlatPanel = -115, ArgumentExceedMaxSize = -116, DeviceSwitchingNotAllowed = -117, TestingClocksNotSupported = -118, UnknownUnderscanConfig = -119, TimeoutReconfiguringGpuTopo = -120, DataNotFound = -121, ExpectedAnalogDisplay = -122, NoVidlink = -123, RequiresReboot = -124, InvalidHybridMode = -125, MixedTargetTypes = -126, Syswow64NotSupported = -127, ImplicitSetGpuTopologyChangeNotAllowed = -128, RequestUserToCloseNonMigratableApps = -129, OutOfMemory = -130, WasStillDrawing = -131, FileNotFound = -132, TooManyUniqueStateObjects = -133, InvalidCall = -134, D3d101LibraryNotFound = -135, FunctionNotFound = -136, InvalidUserPrivilege = -137, ExpectedNonPrimaryDisplayHandle = -138, ExpectedComputeGpuHandle = -139, StereoNotInitialized = -140, StereoRegistryAccessFailed = -141, StereoRegistryProfileTypeNotSupported = -142, StereoRegistryValueNotSupported = -143, StereoNotEnabled = -144, StereoNotTurnedOn = -145, StereoInvalidDeviceInterface = -146, StereoParameterOutOfRange = -147, StereoFrustumAdjustModeNotSupported = -148, TopoNotPossible = -149, ModeChangeFailed = -150, D3d11LibraryNotFound = -151, InvalidAddress = -152, StringTooSmall = -153, MatchingDeviceNotFound = -154, DriverRunning = -155, DriverNotrunning = -156, ErrorDriverReloadRequired = -157, SetNotAllowed = -158, AdvancedDisplayTopologyRequired = -159, SettingNotFound = -160, SettingSizeTooLarge = -161, TooManySettingsInProfile = -162, ProfileNotFound = -163, ProfileNameInUse = -164, ProfileNameEmpty = -165, ExecutableNotFound = -166, ExecutableAlreadyInUse = -167, DatatypeMismatch = -168, ProfileRemoved = -169, UnregisteredResource = -170, IdOutOfRange = -171, DisplayconfigValidationFailed = -172, DpmstChanged = -173, InsufficientBuffer = -174, AccessDenied = -175, MosaicNotActive = -176, ShareResourceRelocated = -177, RequestUserToDisableDwm = -178, D3dDeviceLost = -179, InvalidConfiguration = -180, StereoHandshakeNotDone = -181, ExecutablePathIsAmbiguous = -182, DefaultStereoProfileIsNotDefined = -183, DefaultStereoProfileDoesNotExist = -184, ClusterAlreadyExists = -185, DpmstDisplayIdExpected = -186, InvalidDisplayId = -187, StreamIsOutOfSync = -188, IncompatibleAudioDriver = -189, ValueAlreadySet = -190, Timeout = -191, GpuWorkstationFeatureIncomplete = -192, StereoInitActivationNotDone = -193, SyncNotActive = -194, SyncMasterNotFound = -195, InvalidSyncTopology = -196, EcidSignAlgoUnsupported = -197, EcidKeyVerificationFailed = -198, FirmwareOutOfDate = -199, FirmwareRevisionNotSupported = -200, LicenseCallerAuthenticationFailed = -201, D3dDeviceNotRegistered = -202, ResourceNotAcquired = -203, TimingNotSupported = -204, HdcpEncryptionFailed = -205, PclkLimitationFailed = -206, NoConnectorFound = -207, HdcpDisabled = -208, ApiInUse = -209, NvidiaDisplayNotFound = -210, PrivSecViolation = -211, IncorrectVendor = -212, DisplayInUse = -213, UnsupportedConfigNonHdcpHmd = -214, MaxDisplayLimitReached = -215, InvalidDirectModeDisplay = -216, GpuInDebugMode = -217,
}
Expand description

NvAPI Status Values

All NvAPI functions return one of these codes.

Variants§

§

Ok = 0

Success. Request is completed.

§

Error = -1

Generic error

§

LibraryNotFound = -2

NVAPI support library cannot be loaded.

§

NoImplementation = -3

not implemented in current driver installation

§

ApiNotInitialized = -4

NvAPI_Initialize has not been called (successfully)

§

InvalidArgument = -5

The argument/parameter value is not valid or NULL.

§

NvidiaDeviceNotFound = -6

No NVIDIA display driver, or NVIDIA GPU driving a display, was found.

§

EndEnumeration = -7

No more items to enumerate

§

InvalidHandle = -8

Invalid handle

§

IncompatibleStructVersion = -9

An argument’s structure version is not supported

§

HandleInvalidated = -10

The handle is no longer valid (likely due to GPU or display re-configuration)

§

OpenglContextNotCurrent = -11

No NVIDIA OpenGL context is current (but needs to be)

§

InvalidPointer = -14

An invalid pointer, usually NULL, was passed as a parameter

§

NoGlExpert = -12

OpenGL Expert is not supported by the current drivers

§

InstrumentationDisabled = -13

OpenGL Expert is supported, but driver instrumentation is currently disabled

§

NoGlNsight = -15

OpenGL does not support Nsight

§

ExpectedLogicalGpuHandle = -100

Expected a logical GPU handle for one or more parameters

§

ExpectedPhysicalGpuHandle = -101

Expected a physical GPU handle for one or more parameters

§

ExpectedDisplayHandle = -102

Expected an NV display handle for one or more parameters

§

InvalidCombination = -103

The combination of parameters is not valid.

§

NotSupported = -104

Requested feature is not supported in the selected GPU

§

PortidNotFound = -105

No port ID was found for the I2C transaction

§

ExpectedUnattachedDisplayHandle = -106

Expected an unattached display handle as one of the input parameters.

§

InvalidPerfLevel = -107

Invalid perf level

§

DeviceBusy = -108

Device is busy; request not fulfilled

§

NvPersistFileNotFound = -109

NV persist file is not found

§

PersistDataNotFound = -110

NV persist data is not found

§

ExpectedTvDisplay = -111

Expected a TV output display

§

ExpectedTvDisplayOnDconnector = -112

Expected a TV output on the D Connector - HDTV_EIAJ4120.

§

NoActiveSliTopology = -113

SLI is not active on this device.

§

SliRenderingModeNotallowed = -114

Setup of SLI rendering mode is not possible right now.

§

ExpectedDigitalFlatPanel = -115

Expected a digital flat panel.

§

ArgumentExceedMaxSize = -116

Argument exceeds the expected size.

§

DeviceSwitchingNotAllowed = -117

Inhibit is ON due to one of the flags in NV_GPU_DISPLAY_CHANGE_INHIBIT or SLI active.

§

TestingClocksNotSupported = -118

Testing of clocks is not supported.

§

UnknownUnderscanConfig = -119

The specified underscan config is from an unknown source (e.g. INF)

§

TimeoutReconfiguringGpuTopo = -120

Timeout while reconfiguring GPUs

§

DataNotFound = -121

Requested data was not found

§

ExpectedAnalogDisplay = -122

Expected an analog display

No SLI video bridge is present

§

RequiresReboot = -124

NVAPI requires a reboot for the settings to take effect

§

InvalidHybridMode = -125

The function is not supported with the current Hybrid mode.

§

MixedTargetTypes = -126

The target types are not all the same

§

Syswow64NotSupported = -127

The function is not supported from 32-bit on a 64-bit system.

§

ImplicitSetGpuTopologyChangeNotAllowed = -128

There is no implicit GPU topology active. Use NVAPI_SetHybridMode to change topology.

§

RequestUserToCloseNonMigratableApps = -129

Prompt the user to close all non-migratable applications.

§

OutOfMemory = -130

Could not allocate sufficient memory to complete the call.

§

WasStillDrawing = -131

The previous operation that is transferring information to or from this surface is incomplete.

§

FileNotFound = -132

The file was not found.

§

TooManyUniqueStateObjects = -133

There are too many unique instances of a particular type of state object.

§

InvalidCall = -134

The method call is invalid. For example, a method’s parameter may not be a valid pointer.

§

D3d101LibraryNotFound = -135

d3d10_1.dll cannot be loaded.

§

FunctionNotFound = -136

Couldn’t find the function in the loaded DLL.

§

InvalidUserPrivilege = -137

Current User is not Admin.

§

ExpectedNonPrimaryDisplayHandle = -138

The handle corresponds to GDIPrimary.

§

ExpectedComputeGpuHandle = -139

Setting Physx GPU requires that the GPU is compute-capable.

§

StereoNotInitialized = -140

The Stereo part of NVAPI failed to initialize completely. Check if the stereo driver is installed.

§

StereoRegistryAccessFailed = -141

Access to stereo-related registry keys or values has failed.

§

StereoRegistryProfileTypeNotSupported = -142

The given registry profile type is not supported.

§

StereoRegistryValueNotSupported = -143

The given registry value is not supported.

§

StereoNotEnabled = -144

Stereo is not enabled and the function needed it to execute completely.

§

StereoNotTurnedOn = -145

Stereo is not turned on and the function needed it to execute completely.

§

StereoInvalidDeviceInterface = -146

Invalid device interface.

§

StereoParameterOutOfRange = -147

Separation percentage or JPEG image capture quality is out of [0-100] range.

§

StereoFrustumAdjustModeNotSupported = -148

The given frustum adjust mode is not supported.

§

TopoNotPossible = -149

The mosaic topology is not possible given the current state of the hardware.

§

ModeChangeFailed = -150

An attempt to do a display resolution mode change has failed.

§

D3d11LibraryNotFound = -151

d3d11.dll/d3d11_beta.dll cannot be loaded.

§

InvalidAddress = -152

Address is outside of valid range.

§

StringTooSmall = -153

The pre-allocated string is too small to hold the result.

§

MatchingDeviceNotFound = -154

The input does not match any of the available devices.

§

DriverRunning = -155

Driver is running.

§

DriverNotrunning = -156

Driver is not running.

§

ErrorDriverReloadRequired = -157

A driver reload is required to apply these settings.

§

SetNotAllowed = -158

Intended setting is not allowed.

§

AdvancedDisplayTopologyRequired = -159

Information can’t be returned due to “advanced display topology”.

§

SettingNotFound = -160

Setting is not found.

§

SettingSizeTooLarge = -161

Setting size is too large.

§

TooManySettingsInProfile = -162

There are too many settings for a profile.

§

ProfileNotFound = -163

Profile is not found.

§

ProfileNameInUse = -164

Profile name is duplicated.

§

ProfileNameEmpty = -165

Profile name is empty.

§

ExecutableNotFound = -166

Application not found in the Profile.

§

ExecutableAlreadyInUse = -167

Application already exists in the other profile.

§

DatatypeMismatch = -168

Data Type mismatch

§

ProfileRemoved = -169

The profile passed as parameter has been removed and is no longer valid.

§

UnregisteredResource = -170

An unregistered resource was passed as a parameter.

§

IdOutOfRange = -171

The DisplayId corresponds to a display which is not within the normal outputId range.

§

DisplayconfigValidationFailed = -172

Display topology is not valid so the driver cannot do a mode set on this configuration.

§

DpmstChanged = -173

Display Port Multi-Stream topology has been changed.

§

InsufficientBuffer = -174

Input buffer is insufficient to hold the contents.

§

AccessDenied = -175

No access to the caller.

§

MosaicNotActive = -176

The requested action cannot be performed without Mosaic being enabled.

§

ShareResourceRelocated = -177

The surface is relocated away from video memory.

§

RequestUserToDisableDwm = -178

The user should disable DWM before calling NvAPI.

§

D3dDeviceLost = -179

D3D device status is D3DERR_DEVICELOST or D3DERR_DEVICENOTRESET - the user has to reset the device.

§

InvalidConfiguration = -180

The requested action cannot be performed in the current state.

§

StereoHandshakeNotDone = -181

Call failed as stereo handshake not completed.

§

ExecutablePathIsAmbiguous = -182

The path provided was too short to determine the correct NVDRS_APPLICATION

§

DefaultStereoProfileIsNotDefined = -183

Default stereo profile is not currently defined

§

DefaultStereoProfileDoesNotExist = -184

Default stereo profile does not exist

§

ClusterAlreadyExists = -185

A cluster is already defined with the given configuration.

§

DpmstDisplayIdExpected = -186

The input display id is not that of a multi stream enabled connector or a display device in a multi stream topology

§

InvalidDisplayId = -187

The input display id is not valid or the monitor associated to it does not support the current operation

§

StreamIsOutOfSync = -188

While playing secure audio stream, stream goes out of sync

§

IncompatibleAudioDriver = -189

Older audio driver version than required

§

ValueAlreadySet = -190

Value already set, setting again not allowed.

§

Timeout = -191

Requested operation timed out

§

GpuWorkstationFeatureIncomplete = -192

The requested workstation feature set has incomplete driver internal allocation resources

§

StereoInitActivationNotDone = -193

Call failed because InitActivation was not called.

§

SyncNotActive = -194

The requested action cannot be performed without Sync being enabled.

§

SyncMasterNotFound = -195

The requested action cannot be performed without Sync Master being enabled.

§

InvalidSyncTopology = -196

Invalid displays passed in the NV_GSYNC_DISPLAY pointer.

§

EcidSignAlgoUnsupported = -197

The specified signing algorithm is not supported. Either an incorrect value was entered or the current installed driver/hardware does not support the input value.

§

EcidKeyVerificationFailed = -198

The encrypted public key verification has failed.

§

FirmwareOutOfDate = -199

The device’s firmware is out of date.

§

FirmwareRevisionNotSupported = -200

The device’s firmware is not supported.

§

LicenseCallerAuthenticationFailed = -201

The caller is not authorized to modify the License.

§

D3dDeviceNotRegistered = -202

The user tried to use a deferred context without registering the device first

§

ResourceNotAcquired = -203

Head or SourceId was not reserved for the VR Display before doing the Modeset.

§

TimingNotSupported = -204

Provided timing is not supported.

§

HdcpEncryptionFailed = -205

HDCP Encryption Failed for the device. Would be applicable when the device is HDCP Capable.

§

PclkLimitationFailed = -206

Provided mode is over sink device pclk limitation.

§

NoConnectorFound = -207

No connector on GPU found.

§

HdcpDisabled = -208

When a non-HDCP capable HMD is connected, we would inform user by this code.

§

ApiInUse = -209

Atleast an API is still being called

§

NvidiaDisplayNotFound = -210

No display found on Nvidia GPU(s).

§

PrivSecViolation = -211

Priv security violation, improper access to a secured register.

§

IncorrectVendor = -212

NVAPI cannot be called by this vendor

§

DisplayInUse = -213

DirectMode Display is already in use

§

UnsupportedConfigNonHdcpHmd = -214

The Config is having Non-NVidia GPU with Non-HDCP HMD connected

§

MaxDisplayLimitReached = -215

GPU’s Max Display Limit has Reached

§

InvalidDirectModeDisplay = -216

DirectMode not Enabled on the Display

§

GpuInDebugMode = -217

GPU is in debug mode, OC is NOT allowed.

Implementations§

Source§

impl Status

Source

pub fn from_raw(raw: NvAPI_Status) -> Result<Self, ArgumentRangeError>

Source

pub fn raw(&self) -> NvAPI_Status

Source

pub fn values() -> Cloned<Iter<'static, Self>>

Trait Implementations§

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

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 Status

Source§

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

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

impl<'de> Deserialize<'de> for Status

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Status

Source§

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

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

impl Error for Status

Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ArgumentRangeError> for Status

Source§

fn from(_: ArgumentRangeError) -> Self

Converts to this type from the input type.
Source§

impl Hash for Status

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 Into<i32> for Status

Source§

fn into(self) -> NvAPI_Status

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

impl Ord for Status

Source§

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

Source§

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

Source§

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

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Status

Source§

impl Eq for Status

Source§

impl StructuralPartialEq for Status

Auto Trait Implementations§

§

impl Freeze for Status

§

impl RefUnwindSafe for Status

§

impl Send for Status

§

impl Sync for Status

§

impl Unpin for Status

§

impl UnwindSafe for Status

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,