Struct openxr_sys::Result
source · pub struct Result(/* private fields */);
Expand description
Error and return codes - see XrResult
Implementations§
source§impl Result
impl Result
sourcepub const TIMEOUT_EXPIRED: Result = _
pub const TIMEOUT_EXPIRED: Result = _
The specified timeout time occurred before the operation could complete.
sourcepub const SESSION_LOSS_PENDING: Result = _
pub const SESSION_LOSS_PENDING: Result = _
The session will be lost soon.
sourcepub const EVENT_UNAVAILABLE: Result = _
pub const EVENT_UNAVAILABLE: Result = _
No event was available.
sourcepub const SPACE_BOUNDS_UNAVAILABLE: Result = _
pub const SPACE_BOUNDS_UNAVAILABLE: Result = _
The space’s bounds are not known at the moment.
sourcepub const SESSION_NOT_FOCUSED: Result = _
pub const SESSION_NOT_FOCUSED: Result = _
The session is not in the focused state.
sourcepub const FRAME_DISCARDED: Result = _
pub const FRAME_DISCARDED: Result = _
A frame has been discarded from composition.
sourcepub const ERROR_VALIDATION_FAILURE: Result = _
pub const ERROR_VALIDATION_FAILURE: Result = _
The function usage was invalid in some way.
sourcepub const ERROR_RUNTIME_FAILURE: Result = _
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.
sourcepub const ERROR_OUT_OF_MEMORY: Result = _
pub const ERROR_OUT_OF_MEMORY: Result = _
A memory allocation has failed.
sourcepub const ERROR_API_VERSION_UNSUPPORTED: Result = _
pub const ERROR_API_VERSION_UNSUPPORTED: Result = _
The runtime does not support the requested API version.
sourcepub const ERROR_INITIALIZATION_FAILED: Result = _
pub const ERROR_INITIALIZATION_FAILED: Result = _
Initialization of object could not be completed.
sourcepub const ERROR_FUNCTION_UNSUPPORTED: Result = _
pub const ERROR_FUNCTION_UNSUPPORTED: Result = _
The requested function was not found or is otherwise unsupported.
sourcepub const ERROR_FEATURE_UNSUPPORTED: Result = _
pub const ERROR_FEATURE_UNSUPPORTED: Result = _
The requested feature is not supported.
sourcepub const ERROR_EXTENSION_NOT_PRESENT: Result = _
pub const ERROR_EXTENSION_NOT_PRESENT: Result = _
A requested extension is not supported.
sourcepub const ERROR_LIMIT_REACHED: Result = _
pub const ERROR_LIMIT_REACHED: Result = _
The runtime supports no more of the requested resource.
sourcepub const ERROR_SIZE_INSUFFICIENT: Result = _
pub const ERROR_SIZE_INSUFFICIENT: Result = _
The supplied size was smaller than required.
sourcepub const ERROR_HANDLE_INVALID: Result = _
pub const ERROR_HANDLE_INVALID: Result = _
A supplied object handle was invalid.
sourcepub const ERROR_INSTANCE_LOST: Result = _
pub const ERROR_INSTANCE_LOST: Result = _
The XrInstance was lost or could not be found. It will need to be destroyed and optionally recreated.
sourcepub const ERROR_SESSION_RUNNING: Result = _
pub const ERROR_SESSION_RUNNING: Result = _
The session is already running.
sourcepub const ERROR_SESSION_NOT_RUNNING: Result = _
pub const ERROR_SESSION_NOT_RUNNING: Result = _
The session is not yet running.
sourcepub const ERROR_SESSION_LOST: Result = _
pub const ERROR_SESSION_LOST: Result = _
The XrSession was lost. It will need to be destroyed and optionally recreated.
sourcepub const ERROR_SYSTEM_INVALID: Result = _
pub const ERROR_SYSTEM_INVALID: Result = _
The provided XrSystemId was invalid.
sourcepub const ERROR_PATH_INVALID: Result = _
pub const ERROR_PATH_INVALID: Result = _
The provided XrPath was not valid.
sourcepub const ERROR_PATH_COUNT_EXCEEDED: Result = _
pub const ERROR_PATH_COUNT_EXCEEDED: Result = _
The maximum number of supported semantic paths has been reached.
sourcepub const ERROR_PATH_FORMAT_INVALID: Result = _
pub const ERROR_PATH_FORMAT_INVALID: Result = _
The semantic path character format is invalid.
sourcepub const ERROR_PATH_UNSUPPORTED: Result = _
pub const ERROR_PATH_UNSUPPORTED: Result = _
The semantic path is unsupported.
sourcepub const ERROR_LAYER_INVALID: Result = _
pub const ERROR_LAYER_INVALID: Result = _
The layer was NULL or otherwise invalid.
sourcepub const ERROR_LAYER_LIMIT_EXCEEDED: Result = _
pub const ERROR_LAYER_LIMIT_EXCEEDED: Result = _
The number of specified layers is greater than the supported number.
sourcepub const ERROR_SWAPCHAIN_RECT_INVALID: Result = _
pub const ERROR_SWAPCHAIN_RECT_INVALID: Result = _
The image rect was negatively sized or otherwise invalid.
sourcepub const ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED: Result = _
pub const ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED: Result = _
The image format is not supported by the runtime or platform.
sourcepub const ERROR_ACTION_TYPE_MISMATCH: Result = _
pub const ERROR_ACTION_TYPE_MISMATCH: Result = _
The API used to retrieve an action’s state does not match the action’s type.
sourcepub const ERROR_SESSION_NOT_READY: Result = _
pub const ERROR_SESSION_NOT_READY: Result = _
The session is not in the ready state.
sourcepub const ERROR_SESSION_NOT_STOPPING: Result = _
pub const ERROR_SESSION_NOT_STOPPING: Result = _
The session is not in the stopping state.
sourcepub const ERROR_TIME_INVALID: Result = _
pub const ERROR_TIME_INVALID: Result = _
The provided XrTime was zero, negative, or out of range.
sourcepub const ERROR_REFERENCE_SPACE_UNSUPPORTED: Result = _
pub const ERROR_REFERENCE_SPACE_UNSUPPORTED: Result = _
The specified reference space is not supported by the runtime or system.
sourcepub const ERROR_FILE_ACCESS_ERROR: Result = _
pub const ERROR_FILE_ACCESS_ERROR: Result = _
The file could not be accessed.
sourcepub const ERROR_FILE_CONTENTS_INVALID: Result = _
pub const ERROR_FILE_CONTENTS_INVALID: Result = _
The file’s contents were invalid.
sourcepub const ERROR_FORM_FACTOR_UNSUPPORTED: Result = _
pub const ERROR_FORM_FACTOR_UNSUPPORTED: Result = _
The specified form factor is not supported by the current runtime or platform.
sourcepub const ERROR_FORM_FACTOR_UNAVAILABLE: Result = _
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.
sourcepub const ERROR_API_LAYER_NOT_PRESENT: Result = _
pub const ERROR_API_LAYER_NOT_PRESENT: Result = _
A requested API layer is not present or could not be loaded.
sourcepub const ERROR_CALL_ORDER_INVALID: Result = _
pub const ERROR_CALL_ORDER_INVALID: Result = _
The call was made without having made a previously required call.
sourcepub const ERROR_GRAPHICS_DEVICE_INVALID: Result = _
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.
sourcepub const ERROR_POSE_INVALID: Result = _
pub const ERROR_POSE_INVALID: Result = _
The supplied pose was invalid with respect to the requirements.
sourcepub const ERROR_INDEX_OUT_OF_RANGE: Result = _
pub const ERROR_INDEX_OUT_OF_RANGE: Result = _
The supplied index was outside the range of valid indices.
sourcepub const ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED: Result = _
pub const ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED: Result = _
The specified view configuration type is not supported by the runtime or platform.
sourcepub const ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED: Result = _
pub const ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED: Result = _
The specified environment blend mode is not supported by the runtime or platform.
sourcepub const ERROR_NAME_DUPLICATED: Result = _
pub const ERROR_NAME_DUPLICATED: Result = _
The name provided was a duplicate of an already-existing resource.
sourcepub const ERROR_NAME_INVALID: Result = _
pub const ERROR_NAME_INVALID: Result = _
The name provided was invalid.
sourcepub const ERROR_ACTIONSET_NOT_ATTACHED: Result = _
pub const ERROR_ACTIONSET_NOT_ATTACHED: Result = _
A referenced action set is not attached to the session.
sourcepub const ERROR_ACTIONSETS_ALREADY_ATTACHED: Result = _
pub const ERROR_ACTIONSETS_ALREADY_ATTACHED: Result = _
The session already has attached action sets.
sourcepub const ERROR_LOCALIZED_NAME_DUPLICATED: Result = _
pub const ERROR_LOCALIZED_NAME_DUPLICATED: Result = _
The localized name provided was a duplicate of an already-existing resource.
sourcepub const ERROR_LOCALIZED_NAME_INVALID: Result = _
pub const ERROR_LOCALIZED_NAME_INVALID: Result = _
The localized name provided was invalid.
sourcepub const ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING: Result = _
pub const ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING: Result = _
The xrGetGraphicsRequirements* call was not made before calling xrCreateSession.
sourcepub const ERROR_RUNTIME_UNAVAILABLE: Result = _
pub const ERROR_RUNTIME_UNAVAILABLE: Result = _
The loader was unable to find or load a runtime.
sourcepub const ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR: Result = _
pub const ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR: Result = _
xrSetAndroidApplicationThreadKHR failed as thread id is invalid.
sourcepub const ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR: Result = _
pub const ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR: Result = _
xrSetAndroidApplicationThreadKHR failed setting the thread attributes/priority.
sourcepub const ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT: Result = _
pub const ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT: Result = _
Spatial anchor could not be created at that location.
sourcepub const ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT: Result = _
pub const ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT: Result = _
The secondary view configuration was not enabled when creating the session.
sourcepub const ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT: Result = _
pub const ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT: Result = _
The controller model key is invalid.
sourcepub const ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT: Result = _
pub const ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT: Result = _
The reprojection mode is not supported.
sourcepub const ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT: Result = _
pub const ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT: Result = _
Compute new scene not completed.
sourcepub const ERROR_SCENE_COMPONENT_ID_INVALID_MSFT: Result = _
pub const ERROR_SCENE_COMPONENT_ID_INVALID_MSFT: Result = _
Scene component id invalid.
sourcepub const ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT: Result = _
pub const ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT: Result = _
Scene component type mismatch.
sourcepub const ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT: Result = _
pub const ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT: Result = _
Scene mesh buffer id invalid.
sourcepub const ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT: Result = _
pub const ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT: Result = _
Scene compute feature incompatible.
sourcepub const ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT: Result = _
pub const ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT: Result = _
Scene compute consistency mismatch.
sourcepub const ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB: Result = _
pub const ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB: Result = _
The display refresh rate is not supported by the platform.
sourcepub const ERROR_COLOR_SPACE_UNSUPPORTED_FB: Result = _
pub const ERROR_COLOR_SPACE_UNSUPPORTED_FB: Result = _
The color space is not supported by the runtime.
sourcepub const ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB: Result = _
pub const ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB: Result = _
The component type is not supported for this space.
sourcepub const ERROR_SPACE_COMPONENT_NOT_ENABLED_FB: Result = _
pub const ERROR_SPACE_COMPONENT_NOT_ENABLED_FB: Result = _
The required component is not enabled for this space.
sourcepub const ERROR_SPACE_COMPONENT_STATUS_PENDING_FB: Result = _
pub const ERROR_SPACE_COMPONENT_STATUS_PENDING_FB: Result = _
A request to set the component’s status is currently pending.
sourcepub const ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB: Result = _
pub const ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB: Result = _
The component is already set to the requested value.
sourcepub const ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB: Result = _
pub const ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB: Result = _
The object state is unexpected for the issued command.
sourcepub const ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB: Result = _
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.
sourcepub const ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB: Result = _
pub const ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB: Result = _
Requested functionality requires a feature to be created first.
sourcepub const ERROR_NOT_PERMITTED_PASSTHROUGH_FB: Result = _
pub const ERROR_NOT_PERMITTED_PASSTHROUGH_FB: Result = _
Requested functionality is not permitted - application is not allowed to perform the requested operation.
sourcepub const ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB: Result = _
pub const ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB: Result = _
There weren’t sufficient resources available to perform an operation.
sourcepub const ERROR_UNKNOWN_PASSTHROUGH_FB: Result = _
pub const ERROR_UNKNOWN_PASSTHROUGH_FB: Result = _
Unknown Passthrough error (no further details provided).
sourcepub const ERROR_RENDER_MODEL_KEY_INVALID_FB: Result = _
pub const ERROR_RENDER_MODEL_KEY_INVALID_FB: Result = _
The model key is invalid.
sourcepub const RENDER_MODEL_UNAVAILABLE_FB: Result = _
pub const RENDER_MODEL_UNAVAILABLE_FB: Result = _
The model is unavailable.
sourcepub const ERROR_MARKER_NOT_TRACKED_VARJO: Result = _
pub const ERROR_MARKER_NOT_TRACKED_VARJO: Result = _
Marker tracking is disabled or the specified marker is not currently tracked.
sourcepub const ERROR_MARKER_ID_INVALID_VARJO: Result = _
pub const ERROR_MARKER_ID_INVALID_VARJO: Result = _
The specified marker ID is not valid.
sourcepub const ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT: Result = _
pub const ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT: Result = _
A spatial anchor was not found associated with the spatial anchor name provided
sourcepub const ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT: Result = _
pub const ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT: Result = _
The spatial anchor name provided was not valid
sourcepub const SCENE_MARKER_DATA_NOT_STRING_MSFT: Result = _
pub const SCENE_MARKER_DATA_NOT_STRING_MSFT: Result = _
Marker does not encode a string.
sourcepub const ERROR_SPACE_MAPPING_INSUFFICIENT_FB: Result = _
pub const ERROR_SPACE_MAPPING_INSUFFICIENT_FB: Result = _
Anchor import from cloud or export from device failed.
sourcepub const ERROR_SPACE_LOCALIZATION_FAILED_FB: Result = _
pub const ERROR_SPACE_LOCALIZATION_FAILED_FB: Result = _
Anchors were downloaded from the cloud but failed to be imported/aligned on the device.
sourcepub const ERROR_SPACE_NETWORK_TIMEOUT_FB: Result = _
pub const ERROR_SPACE_NETWORK_TIMEOUT_FB: Result = _
Timeout occurred while waiting for network request to complete.
sourcepub const ERROR_SPACE_NETWORK_REQUEST_FAILED_FB: Result = _
pub const ERROR_SPACE_NETWORK_REQUEST_FAILED_FB: Result = _
The network request failed.
sourcepub const ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB: Result = _
pub const ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB: Result = _
Cloud storage is required for this operation but is currently disabled.
sourcepub const ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META: Result = _
pub const ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META: Result = _
The provided data buffer did not match the required size.
sourcepub const ERROR_HINT_ALREADY_SET_QCOM: Result = _
pub const ERROR_HINT_ALREADY_SET_QCOM: Result = _
Tracking optimization hint is already set for the domain.
sourcepub const ERROR_SPACE_NOT_LOCATABLE_EXT: Result = _
pub const ERROR_SPACE_NOT_LOCATABLE_EXT: Result = _
The space passed to the function was not locatable.
sourcepub const ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT: Result = _
pub const ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT: Result = _
The permission for this resource was not granted.