pub enum Scene3dError {
InvalidBackground,
EmptyStyle,
StyleHasNoMatchingGeometry,
InvalidTransform,
SceneIdExhausted,
ObjectIdExhausted,
AllocationFailed {
requested_bytes: usize,
},
ObjectNotFound {
object_id: Object3dId,
},
}Expand description
Rejection reason for 3D scene visual state.
Variants§
InvalidBackground
The target clear color must be normalized and opaque.
EmptyStyle
Surface and wireframe were both disabled.
StyleHasNoMatchingGeometry
The selected surface/edge modes have no corresponding mesh topology.
InvalidTransform
A model transform cannot be represented portably by the GPU shader.
SceneIdExhausted
No more process-unique scene identifiers can be allocated.
ObjectIdExhausted
No more stable object identifiers can be allocated.
AllocationFailed
CPU storage for another retained object could not be reserved.
ObjectNotFound
An object update referenced a missing stable handle.
Fields
§
object_id: Object3dIdStable handle that is absent from this scene.
Trait Implementations§
Source§impl Clone for Scene3dError
impl Clone for Scene3dError
Source§fn clone(&self) -> Scene3dError
fn clone(&self) -> Scene3dError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Scene3dError
Source§impl Debug for Scene3dError
impl Debug for Scene3dError
Source§impl Display for Scene3dError
impl Display for Scene3dError
impl Eq for Scene3dError
Source§impl Error for Scene3dError
impl Error for Scene3dError
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()
Source§impl PartialEq for Scene3dError
impl PartialEq for Scene3dError
impl StructuralPartialEq for Scene3dError
Auto Trait Implementations§
impl Freeze for Scene3dError
impl RefUnwindSafe for Scene3dError
impl Send for Scene3dError
impl Sync for Scene3dError
impl Unpin for Scene3dError
impl UnsafeUnpin for Scene3dError
impl UnwindSafe for Scene3dError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.