Enum physx_sys::PxErrorCode
source · #[repr(i32)]pub enum PxErrorCode {
NoError = 0,
DebugInfo = 1,
DebugWarning = 2,
InvalidParameter = 4,
InvalidOperation = 8,
OutOfMemory = 16,
InternalError = 32,
Abort = 64,
PerfWarning = 128,
MaskAll = -1,
}
Expand description
Error codes
These error codes are passed to PxErrorCallback
Variants§
NoError = 0
DebugInfo = 1
An informational message.
DebugWarning = 2
a warning message for the user to help with debugging
InvalidParameter = 4
method called with invalid parameter(s)
InvalidOperation = 8
method was called at a time when an operation is not possible
OutOfMemory = 16
method failed to allocate some memory
InternalError = 32
The library failed for some reason. Possibly you have passed invalid values like NaNs, which are not checked for.
Abort = 64
An unrecoverable error, execution should be halted and log output flushed
PerfWarning = 128
The SDK has determined that an operation may result in poor performance.
MaskAll = -1
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 for PxErrorCode
impl PartialEq 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 ==
.impl Copy for PxErrorCode
impl Eq for PxErrorCode
impl StructuralEq for PxErrorCode
impl StructuralPartialEq for PxErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for PxErrorCode
impl Send for PxErrorCode
impl Sync for PxErrorCode
impl Unpin for PxErrorCode
impl UnwindSafe for PxErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more