Enum physx_sys::PxErrorCode
source · #[repr(i32)]
pub enum PxErrorCode {
NoError,
DebugInfo,
DebugWarning,
InvalidParameter,
InvalidOperation,
OutOfMemory,
InternalError,
Abort,
PerfWarning,
MaskAll,
}
Expand description
Error codes
These error codes are passed to PxErrorCallback
Variants§
NoError
DebugInfo
An informational message.
DebugWarning
a warning message for the user to help with debugging
InvalidParameter
method called with invalid parameter(s)
InvalidOperation
method was called at a time when an operation is not possible
OutOfMemory
method failed to allocate some memory
InternalError
The library failed for some reason. Possibly you have passed invalid values like NaNs, which are not checked for.
Abort
An unrecoverable error, execution should be halted and log output flushed
PerfWarning
The SDK has determined that an operation may result in poor performance.
MaskAll
A bit mask for including all errors
Trait Implementations§
source§impl Clone for PxErrorCode
impl Clone for PxErrorCode
source§fn clone(&self) -> PxErrorCode
fn clone(&self) -> PxErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PxErrorCode
impl Debug for PxErrorCode
source§impl PartialEq<PxErrorCode> for PxErrorCode
impl PartialEq<PxErrorCode> for PxErrorCode
source§fn eq(&self, other: &PxErrorCode) -> bool
fn eq(&self, other: &PxErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.