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
5#[cfg(feature = "ipc")]
6use serde::{Deserialize, Serialize};
7
8/// Errors that can be produced by XR.
9
10// TODO: this is currently incomplete!
11
12#[derive(Debug)]
13#[cfg_attr(feature = "ipc", derive(Serialize, Deserialize))]
14pub enum Error {
15    NoMatchingDevice,
16    CommunicationError,
17    ThreadCreationError,
18    InlineSession,
19    UnsupportedFeature(String),
20    BackendSpecific(String),
21}