Skip to main content

ErrorCode

Enum ErrorCode 

Source
pub enum ErrorCode {
Show 30 variants ConfigInvalidParameter = 1_001, ConfigMissingParameter = 1_002, ConfigConflictingParameters = 1_003, ConfigFileNotFound = 1_004, ProcessingBufferSizeMismatch = 2_001, ProcessingSampleRateMismatch = 2_002, ProcessingRealtimeViolation = 2_003, ProcessingResourceExhausted = 2_004, HrtfDatabaseLoadFailed = 3_001, HrtfInvalidPosition = 3_002, HrtfInterpolationFailed = 3_003, PositionInvalidCoordinates = 4_001, PositionTrackingUnavailable = 4_002, PositionCalibrationRequired = 4_003, RoomInvalidDimensions = 5_001, RoomInvalidMaterial = 5_002, RoomRayTracingFailed = 5_003, AudioUnsupportedFormat = 6_001, AudioClippingDetected = 6_002, AudioBufferIssue = 6_003, MemoryOutOfMemory = 7_001, MemoryPoolExhausted = 7_002, MemoryCacheMiss = 7_003, GpuNotAvailable = 8_001, GpuCudaError = 8_002, GpuAllocationFailed = 8_003, PlatformNotSupported = 9_001, PlatformSdkInitFailed = 9_002, PlatformFeatureUnavailable = 9_003, Generic = 10_000,
}
Expand description

Error codes for programmatic error handling

Variants§

§

ConfigInvalidParameter = 1_001

Configuration errors (1000-1999) Invalid parameter error code

§

ConfigMissingParameter = 1_002

Missing parameter error code

§

ConfigConflictingParameters = 1_003

Conflicting parameters error code

§

ConfigFileNotFound = 1_004

Configuration file not found error code

§

ProcessingBufferSizeMismatch = 2_001

Processing errors (2000-2999) Buffer size mismatch error code

§

ProcessingSampleRateMismatch = 2_002

Sample rate mismatch error code

§

ProcessingRealtimeViolation = 2_003

Real-time constraint violation error code

§

ProcessingResourceExhausted = 2_004

Resource exhaustion error code

§

HrtfDatabaseLoadFailed = 3_001

HRTF errors (3000-3999) HRTF database load failed error code

§

HrtfInvalidPosition = 3_002

Invalid HRTF position error code

§

HrtfInterpolationFailed = 3_003

HRTF interpolation failed error code

§

PositionInvalidCoordinates = 4_001

Position errors (4000-4999) Invalid coordinates error code

§

PositionTrackingUnavailable = 4_002

Tracking system unavailable error code

§

PositionCalibrationRequired = 4_003

Calibration required error code

§

RoomInvalidDimensions = 5_001

Room errors (5000-5999) Invalid room dimensions error code

§

RoomInvalidMaterial = 5_002

Invalid material properties error code

§

RoomRayTracingFailed = 5_003

Ray tracing computation failed error code

§

AudioUnsupportedFormat = 6_001

Audio errors (6000-6999) Unsupported audio format error code

§

AudioClippingDetected = 6_002

Audio clipping detected error code

§

AudioBufferIssue = 6_003

Audio buffer issue error code

§

MemoryOutOfMemory = 7_001

Memory errors (7000-7999) Out of memory error code

§

MemoryPoolExhausted = 7_002

Memory pool exhausted error code

§

MemoryCacheMiss = 7_003

Cache miss error code

§

GpuNotAvailable = 8_001

GPU errors (8000-8999) GPU not available error code

§

GpuCudaError = 8_002

CUDA error code

§

GpuAllocationFailed = 8_003

GPU memory allocation failed error code

§

PlatformNotSupported = 9_001

Platform errors (9000-9999) Platform not supported error code

§

PlatformSdkInitFailed = 9_002

Platform SDK initialization failed error code

§

PlatformFeatureUnavailable = 9_003

Platform feature unavailable error code

§

Generic = 10_000

Generic errors (10000+) Generic error code

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

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

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

impl Eq for ErrorCode

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 (const: unstable) · 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 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> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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, 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more