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_EXTENSION_DEPENDENCY_NOT_ENABLED: Result
pub const ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED: Result
One or more of the extensions being enabled has dependency on extensions that are not enabled.
Sourcepub const ERROR_PERMISSION_INSUFFICIENT: Result
pub const ERROR_PERMISSION_INSUFFICIENT: Result
Insufficient permissions. This error is included for use by vendor extensions. The precise definition of XR_ERROR_PERMISSION_INSUFFICIENT
and actions possible by the developer or user to resolve it can vary by platform, extension or function. The developer should refer to the documentation of the function that returned the error code and extension it was defined.
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 were insufficient 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_MARKER_DETECTOR_PERMISSION_DENIED_ML: Result
pub const ERROR_MARKER_DETECTOR_PERMISSION_DENIED_ML: Result
The com.magicleap.permission.MARKER_TRACKING permission was denied.
Sourcepub const ERROR_MARKER_DETECTOR_LOCATE_FAILED_ML: Result
pub const ERROR_MARKER_DETECTOR_LOCATE_FAILED_ML: Result
The specified marker could not be located spatially.
Sourcepub const ERROR_MARKER_DETECTOR_INVALID_DATA_QUERY_ML: Result
pub const ERROR_MARKER_DETECTOR_INVALID_DATA_QUERY_ML: Result
The marker queried does not contain data of the requested type.
Sourcepub const ERROR_MARKER_DETECTOR_INVALID_CREATE_INFO_ML: Result
pub const ERROR_MARKER_DETECTOR_INVALID_CREATE_INFO_ML: Result
createInfo contains mutually exclusive parameters, such as setting XR_MARKER_DETECTOR_CORNER_REFINE_METHOD_APRIL_TAG_ML with XR_MARKER_TYPE_ARUCO_ML.
Sourcepub const ERROR_MARKER_INVALID_ML: Result
pub const ERROR_MARKER_INVALID_ML: Result
The marker id passed to the function was invalid.
Sourcepub const ERROR_LOCALIZATION_MAP_INCOMPATIBLE_ML: Result
pub const ERROR_LOCALIZATION_MAP_INCOMPATIBLE_ML: Result
The localization map being imported is not compatible with current OS or mode.
Sourcepub const ERROR_LOCALIZATION_MAP_UNAVAILABLE_ML: Result
pub const ERROR_LOCALIZATION_MAP_UNAVAILABLE_ML: Result
The localization map requested is not available.
Sourcepub const ERROR_LOCALIZATION_MAP_FAIL_ML: Result
pub const ERROR_LOCALIZATION_MAP_FAIL_ML: Result
The map localization service failed to fulfill the request, retry later.
Sourcepub const ERROR_LOCALIZATION_MAP_IMPORT_EXPORT_PERMISSION_DENIED_ML: Result
pub const ERROR_LOCALIZATION_MAP_IMPORT_EXPORT_PERMISSION_DENIED_ML: Result
The com.magicleap.permission.SPACE_IMPORT_EXPORT permission was denied.
Sourcepub const ERROR_LOCALIZATION_MAP_PERMISSION_DENIED_ML: Result
pub const ERROR_LOCALIZATION_MAP_PERMISSION_DENIED_ML: Result
The com.magicleap.permission.SPACE_MANAGER permission was denied.
Sourcepub const ERROR_LOCALIZATION_MAP_ALREADY_EXISTS_ML: Result
pub const ERROR_LOCALIZATION_MAP_ALREADY_EXISTS_ML: Result
The map being imported already exists in the system.
Sourcepub const ERROR_LOCALIZATION_MAP_CANNOT_EXPORT_CLOUD_MAP_ML: Result
pub const ERROR_LOCALIZATION_MAP_CANNOT_EXPORT_CLOUD_MAP_ML: Result
The map localization service cannot export cloud based maps.
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 ENVIRONMENT_DEPTH_NOT_AVAILABLE_META: Result
pub const ENVIRONMENT_DEPTH_NOT_AVAILABLE_META: Result
Warning: The requested depth image is not yet available.
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_NOT_AN_ANCHOR_HTC: Result
pub const ERROR_NOT_AN_ANCHOR_HTC: Result
The provided space is valid but not an anchor.
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.
Sourcepub const ERROR_FUTURE_PENDING_EXT: Result
pub const ERROR_FUTURE_PENDING_EXT: Result
Returned by completion function to indicate future is not ready.
Sourcepub const ERROR_FUTURE_INVALID_EXT: Result
pub const ERROR_FUTURE_INVALID_EXT: Result
Returned by completion function to indicate future is not valid.