Type Alias OpenXrHostResult

Source
pub type OpenXrHostResult<T> = Result<T, OpenXrHostError>;
Expand description

Shared result alias for host-side XR adapters.

§Examples

use ailloli_ui_openxr::{OpenXrHostError, OpenXrHostResult};

let result: OpenXrHostResult<()> = Err(OpenXrHostError::Unsupported("hand tracking".into()));
assert!(matches!(result, Err(OpenXrHostError::Unsupported(_))));

Aliased Type§

enum OpenXrHostResult<T> {
    Ok(T),
    Err(OpenXrHostError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(OpenXrHostError)

Contains the error value