pub enum OpenXrHostError {
FrameSourceUnavailable(String),
PresentFailed(String),
InputConversionFailed(String),
Unsupported(String),
CallbackFailed(String),
}Expand description
Errors produced by ailloli_ui_openxr host adapters.
The contained string preserves backend or callback context and is included in the human-readable error message.
§Examples
use ailloli_ui_openxr::OpenXrHostError;
let error = OpenXrHostError::PresentFailed("queue closed".into());
assert_eq!(error.to_string(), "openxr host: swapchain present failed: queue closed");Variants§
Source failed to provide a writable texture for rendering.
PresentFailed(String)
Host-side submit/present of the rendered frame failed.
InputConversionFailed(String)
Input conversion failed (invalid geometry or inconsistent source state).
Unsupported(String)
Unsupported backend feature combination.
CallbackFailed(String)
Generic callback failure (used by mock and callback sources).
Trait Implementations§
Source§impl Debug for OpenXrHostError
impl Debug for OpenXrHostError
Source§impl Display for OpenXrHostError
impl Display for OpenXrHostError
Source§impl Error for OpenXrHostError
impl Error for OpenXrHostError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OpenXrHostError
impl RefUnwindSafe for OpenXrHostError
impl Send for OpenXrHostError
impl Sync for OpenXrHostError
impl Unpin for OpenXrHostError
impl UnwindSafe for OpenXrHostError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more