#[non_exhaustive]pub enum ErrorKind {
Show 14 variants
Validation,
Io,
Asset,
Svg,
Formula,
Parameters,
Timeline,
GpuUnavailable,
Gpu,
DeviceLost,
ScenePanic,
Encoder,
Cancelled,
Other,
}Expand description
Stable categories for programmatic handling across engine boundaries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Validation
Invalid scene properties or exhausted structural/raster allowances.
Io
Filesystem or other operating-system I/O failure.
Asset
Loading or decoding a named resource failed.
Svg
SVG parsing failed.
Formula
Formula compilation failed.
Parameters
Project parameters could not be decoded.
Timeline
Timeline construction or timing failed.
A requested GPU could not be initialized.
Gpu
GPU submission, readback or allocation failed without confirmed device loss.
DeviceLost
An initialized GPU device was lost.
ScenePanic
A scene callback panicked at a worker boundary.
Encoder
Video or audio encoding failed.
Cancelled
Cancellation was observed before output commit.
Other
An extension or other subsystem failed.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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