pub enum LookupError {
Show 38 variants
NoActiveCamera,
NodeNotFound(NodeKey),
CannotRemoveRootNode(NodeKey),
ImportFromDifferentScene,
NodeNameNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousNodeName {
name: String,
matches: Vec<NodeKey>,
},
AnchorNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousAnchorName {
name: String,
hosts: Vec<NodeKey>,
},
ConnectorNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousConnectorName {
name: String,
hosts: Vec<NodeKey>,
},
ClipNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousClipName {
name: String,
matches: Vec<AnimationClipKey>,
},
VariantNotFound {
name: String,
candidates: Vec<String>,
},
AmbiguousVariantName {
name: String,
matches: Vec<u32>,
},
PathNotFound {
path: String,
},
InvalidViewport {
width: u32,
height: u32,
},
InvalidBounds {
reason: &'static str,
},
InvalidFramingOption {
field: &'static str,
reason: &'static str,
},
UnsupportedCameraType {
camera: CameraKey,
operation: &'static str,
supported: &'static str,
},
ImportHasNoBounds,
StaleImport,
NodeIsNotMesh {
node: NodeKey,
},
NonInvertibleParentTransform {
node: NodeKey,
parent: NodeKey,
},
InvalidMorphWeights {
node: NodeKey,
reason: &'static str,
},
MorphWeightWidthMismatch {
node: NodeKey,
expected: usize,
supplied: usize,
},
InvalidTransform {
reason: &'static str,
},
InvalidCameraProjection {
reason: &'static str,
},
GeometryNotFound {
node: NodeKey,
geometry: GeometryHandle,
},
InvalidSkinBinding {
joint_count: usize,
inverse_bind_count: usize,
},
CameraNotFound(CameraKey),
ClippingPlaneNotFound(ClippingPlaneKey),
InstanceSetNotFound(InstanceSetKey),
ParticleSetNotFound(ParticleSetKey),
InstanceNotFound {
instance_set: InstanceSetKey,
instance: InstanceId,
},
InvalidInstanceTint {
instance_set: InstanceSetKey,
instance: InstanceId,
reason: &'static str,
},
LabelNotFound(LabelKey),
UnsupportedLabelText {
label: LabelKey,
reason: String,
},
InvalidLabelStyle {
field: &'static str,
reason: &'static str,
},
}Variants§
NoActiveCamera
NodeNotFound(NodeKey)
CannotRemoveRootNode(NodeKey)
ImportFromDifferentScene
NodeNameNotFound
AmbiguousNodeName
AnchorNotFound
AmbiguousAnchorName
ConnectorNotFound
AmbiguousConnectorName
ClipNotFound
AmbiguousClipName
VariantNotFound
Phase 2B step 3: a variant name passed to
Scene::set_active_variant does not appear in the
SceneImport::material_variants list. Returned instead of
silently no-oping so callers know the asset doesn’t carry
that KHR_materials_variants name.
AmbiguousVariantName
A material variant name appears more than once in the source
KHR_materials_variants declaration. Returned instead of
picking one by enumeration position so hosts can repair the
asset metadata rather than applying a surprising material.
PathNotFound
InvalidViewport
A viewport width or height was zero where projection/framing needs pixels.
InvalidBounds
Bounds were empty, non-finite, or otherwise unsuitable for framing.
InvalidFramingOption
A named framing option failed validation before camera state was changed.
UnsupportedCameraType
The requested operation does not support the camera type yet.
ImportHasNoBounds
StaleImport
NodeIsNotMesh
NonInvertibleParentTransform
InvalidMorphWeights
A morph weight vector contained a non-finite value.
MorphWeightWidthMismatch
A morph weight vector’s width does not match the width already established for the node. Returned instead of silently zipping, which would apply only the leading targets and report success.
InvalidTransform
InvalidCameraProjection
GeometryNotFound
InvalidSkinBinding
CameraNotFound(CameraKey)
ClippingPlaneNotFound(ClippingPlaneKey)
InstanceSetNotFound(InstanceSetKey)
ParticleSetNotFound(ParticleSetKey)
InstanceNotFound
InvalidInstanceTint
LabelNotFound(LabelKey)
UnsupportedLabelText
InvalidLabelStyle
Implementations§
Source§impl LookupError
impl LookupError
pub fn diagnostic(&self) -> ErrorDiagnostic
Trait Implementations§
Source§impl Clone for LookupError
impl Clone for LookupError
Source§fn clone(&self) -> LookupError
fn clone(&self) -> LookupError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LookupError
impl Debug for LookupError
Source§impl Display for LookupError
impl Display for LookupError
impl Eq for LookupError
Source§impl Error for LookupError
impl Error for LookupError
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 From<LookupError> for CaptureError
impl From<LookupError> for CaptureError
Source§fn from(error: LookupError) -> Self
fn from(error: LookupError) -> Self
Source§impl From<LookupError> for Error
impl From<LookupError> for Error
Source§fn from(error: LookupError) -> Self
fn from(error: LookupError) -> Self
Source§impl From<LookupError> for SceneHostError
impl From<LookupError> for SceneHostError
Source§fn from(error: LookupError) -> Self
fn from(error: LookupError) -> Self
Source§impl PartialEq for LookupError
impl PartialEq for LookupError
impl StructuralPartialEq for LookupError
Auto Trait Implementations§
impl Freeze for LookupError
impl RefUnwindSafe for LookupError
impl Send for LookupError
impl Sync for LookupError
impl Unpin for LookupError
impl UnsafeUnpin for LookupError
impl UnwindSafe for LookupError
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Source§impl<T, C> ComponentsInto<C> for T
impl<T, C> ComponentsInto<C> for T
Source§fn components_into(self) -> C
fn components_into(self) -> C
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more