Files
servo/components/shared/webxr/error.rs
Narfinger 8ec23eda46 webxr: Remove the ipc feature (#41736)
webxr/webxr-api have the feature flag "ipc". This is required by
important crates such as script and canvas. The only distinction was
made in servo which does not use the IPC for android/ohos but because
servo depends on script, this was essentially useless.

This PR removes the feature flag and cleans up the code related to it.

Testing: Compilation is the test.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
2026-01-07 14:49:11 +00:00

20 lines
536 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use serde::{Deserialize, Serialize};
/// Errors that can be produced by XR.
// TODO: this is currently incomplete!
#[derive(Debug, Serialize, Deserialize)]
pub enum Error {
NoMatchingDevice,
CommunicationError,
ThreadCreationError,
InlineSession,
UnsupportedFeature(String),
BackendSpecific(String),
}