Struct 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_EXTENSION_DEPENDENCY_NOT_ENABLED: Result

One or more of the extensions being enabled has dependency on extensions that are not enabled.

Source

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.

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 were insufficient 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_MARKER_DETECTOR_PERMISSION_DENIED_ML: Result

The com.magicleap.permission.MARKER_TRACKING permission was denied.

Source

pub const ERROR_MARKER_DETECTOR_LOCATE_FAILED_ML: Result

The specified marker could not be located spatially.

Source

pub const ERROR_MARKER_DETECTOR_INVALID_DATA_QUERY_ML: Result

The marker queried does not contain data of the requested type.

Source

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.

Source

pub const ERROR_MARKER_INVALID_ML: Result

The marker id passed to the function was invalid.

Source

pub const ERROR_LOCALIZATION_MAP_INCOMPATIBLE_ML: Result

The localization map being imported is not compatible with current OS or mode.

Source

pub const ERROR_LOCALIZATION_MAP_UNAVAILABLE_ML: Result

The localization map requested is not available.

Source

pub const ERROR_LOCALIZATION_MAP_FAIL_ML: Result

The map localization service failed to fulfill the request, retry later.

Source

pub const ERROR_LOCALIZATION_MAP_IMPORT_EXPORT_PERMISSION_DENIED_ML: Result

The com.magicleap.permission.SPACE_IMPORT_EXPORT permission was denied.

Source

pub const ERROR_LOCALIZATION_MAP_PERMISSION_DENIED_ML: Result

The com.magicleap.permission.SPACE_MANAGER permission was denied.

Source

pub const ERROR_LOCALIZATION_MAP_ALREADY_EXISTS_ML: Result

The map being imported already exists in the system.

Source

pub const ERROR_LOCALIZATION_MAP_CANNOT_EXPORT_CLOUD_MAP_ML: Result

The map localization service cannot export cloud based maps.

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 ENVIRONMENT_DEPTH_NOT_AVAILABLE_META: Result

Warning: The requested depth image is not yet available.

Source

pub const ERROR_HINT_ALREADY_SET_QCOM: Result

Tracking optimization hint is already set for the domain.

Source

pub const ERROR_NOT_AN_ANCHOR_HTC: Result

The provided space is valid but not an anchor.

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 const ERROR_FUTURE_PENDING_EXT: Result

Returned by completion function to indicate future is not ready.

Source

pub const ERROR_FUTURE_INVALID_EXT: Result

Returned by completion function to indicate future is not valid.

Source

pub const ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED_KHR: Result = Self::ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED

Source

pub const ERROR_PERMISSION_INSUFFICIENT_KHR: Result = Self::ERROR_PERMISSION_INSUFFICIENT

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 duplicate 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)>

Returns 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Copy for Result

Source§

impl Eq for Result

Source§

impl StructuralPartialEq for Result

Auto Trait Implementations§

§

impl Freeze for Result

§

impl RefUnwindSafe for Result

§

impl Send for Result

§

impl Sync for Result

§

impl Unpin for Result

§

impl UnwindSafe for Result

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

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> ToString for T
where T: Display + ?Sized,

Source§

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

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.