pub enum PresentationError {
Show 20 variants
InvalidIdentifier,
InvalidMonoView,
InvalidStereoViews,
EmptyViewport,
ViewportOutOfBounds,
OverlappingStereoViewports,
TooManyNodes,
DuplicateNodeId,
UnresolvedRoomAnchor,
InvalidRoomAnchorTransform,
TextTooLong,
InvalidSlider,
InvalidTextInput,
WrongDocument,
StaleRevision,
UnknownNode,
DisabledNode,
WrongEventForNode,
SliderValueOutOfRange,
TextValueTooLong,
}Expand description
Rejection reason for presentation documents, topology, or input.
Variants§
InvalidIdentifier
An identifier is empty, too long, or contains unsupported characters.
InvalidMonoView
A target has a monoscopic viewport with a non-monoscopic identity.
InvalidStereoViews
A stereo target does not declare one left and one right viewport.
EmptyViewport
A target surface or viewport has zero dimensions.
ViewportOutOfBounds
A viewport extends outside the declared target surface.
OverlappingStereoViewports
Stereo viewports occupy overlapping regions.
TooManyNodes
A document exceeds its node bound.
DuplicateNodeId
More than one node uses an identifier.
UnresolvedRoomAnchor
A world placement’s anchor is absent from the resolved adapter context.
InvalidRoomAnchorTransform
A resolved room anchor has a nonfinite or non-rigid transform.
TextTooLong
Node text or labels exceed their portable bound.
InvalidSlider
A slider’s values or step are malformed.
InvalidTextInput
A text input’s current value exceeds its declared bound.
WrongDocument
An event names another document.
StaleRevision
An event targets an older or newer document revision.
UnknownNode
An event names no node in the document.
DisabledNode
An event targets a disabled node.
WrongEventForNode
The event kind or action does not match the node role.
SliderValueOutOfRange
A slider event is nonfinite, outside range, or misses its step.
TextValueTooLong
A text input event exceeds the node’s declared bound.
Trait Implementations§
Source§impl Clone for PresentationError
impl Clone for PresentationError
Source§fn clone(&self) -> PresentationError
fn clone(&self) -> PresentationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PresentationError
Source§impl Debug for PresentationError
impl Debug for PresentationError
Source§impl<'de> Deserialize<'de> for PresentationError
impl<'de> Deserialize<'de> for PresentationError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for PresentationError
impl Display for PresentationError
impl Eq for PresentationError
Source§impl Error for PresentationError
Available on crate feature std only.
impl Error for PresentationError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for PresentationError
impl PartialEq for PresentationError
Source§fn eq(&self, other: &PresentationError) -> bool
fn eq(&self, other: &PresentationError) -> bool
self and other values to be equal, and is used by ==.