webxr_api/
error.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5use serde::{Deserialize, Serialize};
6
7/// Errors that can be produced by XR.
8
9// TODO: this is currently incomplete!
10
11#[derive(Debug, Serialize, Deserialize)]
12pub enum Error {
13    NoMatchingDevice,
14    CommunicationError,
15    ThreadCreationError,
16    InlineSession,
17    UnsupportedFeature(String),
18    BackendSpecific(String),
19}