Struct openxr_sys::Result

source ·
pub struct Result(/* private fields */);
Expand description

Error and return codes - see XrResult

Implementations§

source§

impl Result

source

pub const SUCCESS: Result = _

Function successfully completed.

source

pub const TIMEOUT_EXPIRED: Result = _

The specified timeout time occurred before the operation could complete.

source

pub const SESSION_LOSS_PENDING: Result = _

The session will be lost soon.

source

pub const EVENT_UNAVAILABLE: Result = _

No event was available.

source

pub const SPACE_BOUNDS_UNAVAILABLE: Result = _

The space’s bounds are not known at the moment.

source

pub const SESSION_NOT_FOCUSED: Result = _

The session is not in the focused state.

source

pub const FRAME_DISCARDED: Result = _

A frame has been discarded from composition.

source

pub const ERROR_VALIDATION_FAILURE: Result = _

The function usage was invalid in some way.

source

pub const ERROR_RUNTIME_FAILURE: Result = _

The runtime failed to handle the function in an unexpected way that is not covered by another error result.

source

pub const ERROR_OUT_OF_MEMORY: Result = _

A memory allocation has failed.

source

pub const ERROR_API_VERSION_UNSUPPORTED: Result = _

The runtime does not support the requested API version.

source

pub const ERROR_INITIALIZATION_FAILED: Result = _

Initialization of object could not be completed.

source

pub const ERROR_FUNCTION_UNSUPPORTED: Result = _

The requested function was not found or is otherwise unsupported.

source

pub const ERROR_FEATURE_UNSUPPORTED: Result = _

The requested feature is not supported.

source

pub const ERROR_EXTENSION_NOT_PRESENT: Result = _

A requested extension is not supported.

source

pub const ERROR_LIMIT_REACHED: Result = _

The runtime supports no more of the requested resource.

source

pub const ERROR_SIZE_INSUFFICIENT: Result = _

The supplied size was smaller than required.

source

pub const ERROR_HANDLE_INVALID: Result = _

A supplied object handle was invalid.

source

pub const ERROR_INSTANCE_LOST: Result = _

The XrInstance was lost or could not be found. It will need to be destroyed and optionally recreated.

source

pub const ERROR_SESSION_RUNNING: Result = _

The session is already running.

source

pub const ERROR_SESSION_NOT_RUNNING: Result = _

The session is not yet running.

source

pub const ERROR_SESSION_LOST: Result = _

The XrSession was lost. It will need to be destroyed and optionally recreated.

source

pub const ERROR_SYSTEM_INVALID: Result = _

The provided XrSystemId was invalid.

source

pub const ERROR_PATH_INVALID: Result = _

The provided XrPath was not valid.

source

pub const ERROR_PATH_COUNT_EXCEEDED: Result = _

The maximum number of supported semantic paths has been reached.

source

pub const ERROR_PATH_FORMAT_INVALID: Result = _

The semantic path character format is invalid.

source

pub const ERROR_PATH_UNSUPPORTED: Result = _

The semantic path is unsupported.

source

pub const ERROR_LAYER_INVALID: Result = _

The layer was NULL or otherwise invalid.

source

pub const ERROR_LAYER_LIMIT_EXCEEDED: Result = _

The number of specified layers is greater than the supported number.

source

pub const ERROR_SWAPCHAIN_RECT_INVALID: Result = _

The image rect was negatively sized or otherwise invalid.

source

pub const ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED: Result = _

The image format is not supported by the runtime or platform.

source

pub const ERROR_ACTION_TYPE_MISMATCH: Result = _

The API used to retrieve an action’s state does not match the action’s type.

source

pub const ERROR_SESSION_NOT_READY: Result = _

The session is not in the ready state.

source

pub const ERROR_SESSION_NOT_STOPPING: Result = _

The session is not in the stopping state.

source

pub const ERROR_TIME_INVALID: Result = _

The provided XrTime was zero, negative, or out of range.

source

pub const ERROR_REFERENCE_SPACE_UNSUPPORTED: Result = _

The specified reference space is not supported by the runtime or system.

source

pub const ERROR_FILE_ACCESS_ERROR: Result = _

The file could not be accessed.

source

pub const ERROR_FILE_CONTENTS_INVALID: Result = _

The file’s contents were invalid.

source

pub const ERROR_FORM_FACTOR_UNSUPPORTED: Result = _

The specified form factor is not supported by the current runtime or platform.

source

pub const ERROR_FORM_FACTOR_UNAVAILABLE: Result = _

The specified form factor is supported, but the device is currently not available, e.g. not plugged in or powered off.

source

pub const ERROR_API_LAYER_NOT_PRESENT: Result = _

A requested API layer is not present or could not be loaded.

source

pub const ERROR_CALL_ORDER_INVALID: Result = _

The call was made without having made a previously required call.

source

pub const ERROR_GRAPHICS_DEVICE_INVALID: Result = _

The given graphics device is not in a valid state. The graphics device could be lost or initialized without meeting graphics requirements.

source

pub const ERROR_POSE_INVALID: Result = _

The supplied pose was invalid with respect to the requirements.

source

pub const ERROR_INDEX_OUT_OF_RANGE: Result = _

The supplied index was outside the range of valid indices.

source

pub const ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED: Result = _

The specified view configuration type is not supported by the runtime or platform.

source

pub const ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED: Result = _

The specified environment blend mode is not supported by the runtime or platform.

source

pub const ERROR_NAME_DUPLICATED: Result = _

The name provided was a duplicate of an already-existing resource.

source

pub const ERROR_NAME_INVALID: Result = _

The name provided was invalid.

source

pub const ERROR_ACTIONSET_NOT_ATTACHED: Result = _

A referenced action set is not attached to the session.

source

pub const ERROR_ACTIONSETS_ALREADY_ATTACHED: Result = _

The session already has attached action sets.

source

pub const ERROR_LOCALIZED_NAME_DUPLICATED: Result = _

The localized name provided was a duplicate of an already-existing resource.

source

pub const ERROR_LOCALIZED_NAME_INVALID: Result = _

The localized name provided was invalid.

source

pub const ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING: Result = _

The xrGetGraphicsRequirements* call was not made before calling xrCreateSession.

source

pub const ERROR_RUNTIME_UNAVAILABLE: Result = _

The loader was unable to find or load a runtime.

source

pub const ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR: Result = _

xrSetAndroidApplicationThreadKHR failed as thread id is invalid.

source

pub const ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR: Result = _

xrSetAndroidApplicationThreadKHR failed setting the thread attributes/priority.

source

pub const ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT: Result = _

Spatial anchor could not be created at that location.

source

pub const ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT: Result = _

The secondary view configuration was not enabled when creating the session.

source

pub const ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT: Result = _

The controller model key is invalid.

source

pub const ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT: Result = _

The reprojection mode is not supported.

source

pub const ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT: Result = _

Compute new scene not completed.

source

pub const ERROR_SCENE_COMPONENT_ID_INVALID_MSFT: Result = _

Scene component id invalid.

source

pub const ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT: Result = _

Scene component type mismatch.

source

pub const ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT: Result = _

Scene mesh buffer id invalid.

source

pub const ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT: Result = _

Scene compute feature incompatible.

source

pub const ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT: Result = _

Scene compute consistency mismatch.

source

pub const ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB: Result = _

The display refresh rate is not supported by the platform.

source

pub const ERROR_COLOR_SPACE_UNSUPPORTED_FB: Result = _

The color space is not supported by the runtime.

source

pub const ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB: Result = _

The component type is not supported for this space.

source

pub const ERROR_SPACE_COMPONENT_NOT_ENABLED_FB: Result = _

The required component is not enabled for this space.

source

pub const ERROR_SPACE_COMPONENT_STATUS_PENDING_FB: Result = _

A request to set the component’s status is currently pending.

source

pub const ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB: Result = _

The component is already set to the requested value.

source

pub const ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB: Result = _

The object state is unexpected for the issued command.

source

pub const ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB: Result = _

Trying to create an MR feature when one was already created and only one instance is allowed.

source

pub const ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB: Result = _

Requested functionality requires a feature to be created first.

source

pub const ERROR_NOT_PERMITTED_PASSTHROUGH_FB: Result = _

Requested functionality is not permitted - application is not allowed to perform the requested operation.

source

pub const ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB: Result = _

There weren’t sufficient resources available to perform an operation.

source

pub const ERROR_UNKNOWN_PASSTHROUGH_FB: Result = _

Unknown Passthrough error (no further details provided).

source

pub const ERROR_RENDER_MODEL_KEY_INVALID_FB: Result = _

The model key is invalid.

source

pub const RENDER_MODEL_UNAVAILABLE_FB: Result = _

The model is unavailable.

source

pub const ERROR_MARKER_NOT_TRACKED_VARJO: Result = _

Marker tracking is disabled or the specified marker is not currently tracked.

source

pub const ERROR_MARKER_ID_INVALID_VARJO: Result = _

The specified marker ID is not valid.

source

pub const ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT: Result = _

A spatial anchor was not found associated with the spatial anchor name provided

source

pub const ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT: Result = _

The spatial anchor name provided was not valid

source

pub const SCENE_MARKER_DATA_NOT_STRING_MSFT: Result = _

Marker does not encode a string.

source

pub const ERROR_SPACE_MAPPING_INSUFFICIENT_FB: Result = _

Anchor import from cloud or export from device failed.

source

pub const ERROR_SPACE_LOCALIZATION_FAILED_FB: Result = _

Anchors were downloaded from the cloud but failed to be imported/aligned on the device.

source

pub const ERROR_SPACE_NETWORK_TIMEOUT_FB: Result = _

Timeout occurred while waiting for network request to complete.

source

pub const ERROR_SPACE_NETWORK_REQUEST_FAILED_FB: Result = _

The network request failed.

source

pub const ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB: Result = _

Cloud storage is required for this operation but is currently disabled.

source

pub const ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META: Result = _

The provided data buffer did not match the required size.

source

pub const ERROR_HINT_ALREADY_SET_QCOM: Result = _

Tracking optimization hint is already set for the domain.

source

pub const ERROR_SPACE_NOT_LOCATABLE_EXT: Result = _

The space passed to the function was not locatable.

source

pub const ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT: Result = _

The permission for this resource was not granted.

source

pub fn from_raw(x: i32) -> Self

source

pub fn into_raw(self) -> i32

Trait Implementations§

source§

impl Clone for Result

source§

fn clone(&self) -> Result

Returns a copy 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 Result

source§

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

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

impl Display for Result

source§

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

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

impl Error for Result

1.30.0 · source§

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

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

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
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 PartialEq for Result

source§

fn eq(&self, other: &Result) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Result

source§

impl Eq for Result

source§

impl StructuralPartialEq for Result

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> 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,

§

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§

default 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>,

§

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>,

§

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.