pub enum SceneError {
Show 16 variants
InvalidBackground,
NonFiniteGeometry(ScenePrimitive),
InvalidDimension(ScenePrimitive),
DegenerateGeometry(ScenePrimitive),
DegenerateStrokeTurn {
primitive: ScenePrimitive,
vertex_index: usize,
},
MissingStyle(ScenePrimitive),
InvalidFill(ScenePrimitive),
InvalidStroke(ScenePrimitive),
StrokeExpansionLimitExceeded {
primitive: ScenePrimitive,
limit: usize,
required: usize,
},
UnrepresentableStrokePattern(ScenePrimitive),
UnsupportedTipMarkerPath(ScenePrimitive),
InvalidShadow(ScenePrimitive),
InvalidScreenClip,
NonFiniteDepth,
BudgetExceeded {
resource: SceneBudgetResource,
limit: usize,
requested: usize,
},
AllocationFailed {
requested_bytes: usize,
},
}Expand description
Reason a command or temporary scene state was rejected.
Variants§
InvalidBackground
Clear color is non-finite or outside normalized RGBA.
NonFiniteGeometry(ScenePrimitive)
Primitive coordinates contain NaN or infinity.
InvalidDimension(ScenePrimitive)
Radius, size, corner radius, or stroke width is outside its valid range.
DegenerateGeometry(ScenePrimitive)
A line segment, or at least one consecutive polyline segment, is not drawable.
DegenerateStrokeTurn
Consecutive polyline segments form a numerically ambiguous continuation or reversal.
An almost-collinear change of direction cannot select a stable shader
join branch; a retraced centerline also has no interior-disjoint
alpha-blended representation. vertex_index identifies the path point.
Fields
primitive: ScenePrimitivePrimitive containing the ambiguous turn.
MissingStyle(ScenePrimitive)
Shape has no fill, stroke, or shadow.
InvalidFill(ScenePrimitive)
Fill color or gradient configuration is invalid.
InvalidStroke(ScenePrimitive)
Stroke width or color is invalid.
StrokeExpansionLimitExceeded
A dash pattern would expand into more retained triangle pieces than its explicit per-command limit.
Fields
primitive: ScenePrimitivePrimitive whose stroke exceeded the limit.
UnrepresentableStrokePattern(ScenePrimitive)
Dash/gap boundaries collapse at the source path’s f32 coordinate scale.
UnsupportedTipMarkerPath(ScenePrimitive)
A tip-anchored arrow was used with dashes or a path containing more than two points. Exact-vector markers currently require an undashed segment.
InvalidShadow(ScenePrimitive)
Shadow offset, spread, or color is invalid.
InvalidScreenClip
Active logical screen clip is non-finite or empty.
NonFiniteDepth
Pseudo-depth must be finite.
BudgetExceeded
An accepted command would exceed an explicit scene work limit.
Fields
resource: SceneBudgetResourceWork category whose limit was exceeded.
AllocationFailed
Engine-owned command storage could not be reserved without mutation.
Fields
requested_bytes: usizeConservative byte estimate associated with the failed reservation.
Depending on the transactional path, this can describe one command’s retained payload or the total replacement/staging allocation that could not be reserved. It is diagnostic context, not a delta suitable for allocator accounting.
Trait Implementations§
Source§impl Clone for SceneError
impl Clone for SceneError
Source§fn clone(&self) -> SceneError
fn clone(&self) -> SceneError
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 SceneError
Source§impl Debug for SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
impl Eq for SceneError
Source§impl Error for SceneError
impl Error for SceneError
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 SceneError
impl PartialEq for SceneError
impl StructuralPartialEq for SceneError
Auto Trait Implementations§
impl Freeze for SceneError
impl RefUnwindSafe for SceneError
impl Send for SceneError
impl Sync for SceneError
impl Unpin for SceneError
impl UnsafeUnpin for SceneError
impl UnwindSafe for SceneError
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
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,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
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.