#[non_exhaustive]pub enum ExtractionError {
Show 28 variants
ScreenPrimitiveLimitExceeded {
entity: LogicEntity,
limit: usize,
},
ScreenPolylinePointsLimitExceeded {
entity: LogicEntity,
limit: usize,
requested: usize,
},
MissingStagedFrame,
ThreeD(ThreeDExtractionError),
MissingActiveCamera,
MultipleActiveCameras,
InvalidInterpolationAlpha {
alpha: f32,
},
ForeignEntity {
entity: LogicEntity,
expected: WorldGeneration,
},
InvalidVisual {
entity: LogicEntity,
error: VisualValueError,
},
InvalidInterpolatedTranslation {
entity: LogicEntity,
},
InvalidResolvedRectangle {
entity: LogicEntity,
},
InvalidResolvedLine {
entity: LogicEntity,
},
CircleLimitExceeded {
limit: usize,
},
RectangleLimitExceeded {
limit: usize,
},
LineLimitExceeded {
limit: usize,
},
ScreenRectangleLimitExceeded {
limit: usize,
},
ScreenImageLimitExceeded {
limit: usize,
},
ScreenTextLimitExceeded {
limit: usize,
},
ScreenTextBytesLimitExceeded {
limit: usize,
requested: usize,
},
ScreenTextGlyphLimitExceeded {
limit: usize,
requested: usize,
},
UnregisteredTextFont {
entity: LogicEntity,
font: TextFont,
},
InvalidScreenText {
entity: LogicEntity,
error: TextError,
},
UnregisteredImageAsset {
entity: LogicEntity,
image: ImageAssetId,
},
InvalidScreenImage {
entity: LogicEntity,
error: ImageVisualError,
},
InvalidScreenVisual {
entity: LogicEntity,
error: ScreenVisualError,
},
AllocationFailed {
requested_bytes: usize,
},
Scene(SceneError),
ScreenScene(SceneError),
}Expand description
Structured reason why a new CPU visual snapshot was not published.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ScreenPrimitiveLimitExceeded
A screen line/circle/path source count exceeded its explicit per-kind limit.
Fields
entity: LogicEntityFirst source that exceeded the limit.
ScreenPolylinePointsLimitExceeded
Enabled path points exceeded their aggregate CPU limit, including hidden clips.
Fields
entity: LogicEntityPath that would exceed the limit.
MissingStagedFrame
A private staged snapshot was unavailable for completing 3D extraction.
ThreeD(ThreeDExtractionError)
Independent bounded 3D snapshot preparation failed.
MissingActiveCamera
The active World did not contain a camera marked for extraction.
MultipleActiveCameras
The active World contained more than one marked camera.
InvalidInterpolationAlpha
Interpolation alpha was non-finite or outside the inclusive 0.0..=1.0 range.
ForeignEntity
A visual entity did not belong to the generation being extracted.
Fields
entity: LogicEntityEntity that carried stale or foreign provenance.
expected: WorldGenerationGeneration accepted by this extraction.
InvalidVisual
A component contained a value outside its public visual contract.
Fields
entity: LogicEntityEntity whose visual data was rejected.
error: VisualValueErrorExact invalid value category.
InvalidInterpolatedTranslation
Interpolation of two finite translations did not produce a finite result.
Fields
entity: LogicEntityEntity whose interpolation failed.
InvalidResolvedRectangle
A finite center and size produced collapsed or non-finite f32 bounds.
Fields
entity: LogicEntityEntity whose derived bounds were not representable.
InvalidResolvedLine
An interpolated anchor and finite vector did not form a representable segment.
Fields
entity: LogicEntityEntity whose resolved segment was rejected.
CircleLimitExceeded
The configured extracted-circle count was exceeded.
RectangleLimitExceeded
The configured extracted-rectangle count was exceeded.
LineLimitExceeded
The configured enabled line-source count was exceeded.
ScreenRectangleLimitExceeded
The configured enabled screen-rectangle count was exceeded.
ScreenImageLimitExceeded
The opted-in enabled screen-image source count was exceeded.
ScreenTextLimitExceeded
The opted-in enabled screen-text source count was exceeded.
ScreenTextBytesLimitExceeded
Aggregate enabled label strings exceed the UTF-8 byte allowance.
Fields
ScreenTextGlyphLimitExceeded
Aggregate enabled labels exceed the shaped-glyph allowance.
Fields
UnregisteredTextFont
A label uses a font not registered by this Application.
Fields
entity: LogicEntityManaged source of the foreign or unavailable font.
InvalidScreenText
A label violated its prepared-text, position, or tint contract.
Fields
entity: LogicEntityManaged source whose text visual was rejected.
UnregisteredImageAsset
An image handle was not registered by this Application.
Fields
entity: LogicEntityManaged source of the invalid reference.
image: ImageAssetIdRejected immutable image handle.
InvalidScreenImage
An image component violated its geometry, tint, or source-region contract.
Fields
entity: LogicEntityManaged source whose visual was rejected.
error: ImageVisualErrorExact component validation failure.
InvalidScreenVisual
A screen visual violated its validated logical-pixel contract.
Fields
entity: LogicEntityManaged entity whose screen visual was rejected.
error: ScreenVisualErrorExact invalid value category.
AllocationFailed
CPU storage for a bounded fixed-size resolved record could not be reserved.
Scene(SceneError)
Sim;Engine rejected bounded scene construction.
ScreenScene(SceneError)
Sim;Engine rejected bounded screen-scene construction.
Trait Implementations§
Source§impl Debug for ExtractionError
impl Debug for ExtractionError
Source§impl Display for ExtractionError
impl Display for ExtractionError
Source§impl Error for ExtractionError
impl Error for ExtractionError
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()
Auto Trait Implementations§
impl Freeze for ExtractionError
impl RefUnwindSafe for ExtractionError
impl Send for ExtractionError
impl Sync for ExtractionError
impl Unpin for ExtractionError
impl UnsafeUnpin for ExtractionError
impl UnwindSafe for ExtractionError
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
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.