pub struct ErrorCode(/* private fields */);Expand description
String-backed stable error code.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const REQUEST_INVALID_PADDING: Self
pub const REQUEST_INVALID_PADDING: Self
Request padding is negative or non-finite.
Sourcepub const REQUEST_INVALID_SCALE: Self
pub const REQUEST_INVALID_SCALE: Self
Request scale is non-positive or non-finite.
Sourcepub const REQUEST_INVALID_MAX_DIMENSION: Self
pub const REQUEST_INVALID_MAX_DIMENSION: Self
Request maximum dimension is non-positive or non-finite.
Sourcepub const REQUEST_INCOMPATIBLE_FORMAT_OPTIONS: Self
pub const REQUEST_INCOMPATIBLE_FORMAT_OPTIONS: Self
Format-specific options were supplied for another output format.
Sourcepub const REQUEST_EMPTY_ASSET_ID: Self
pub const REQUEST_EMPTY_ASSET_ID: Self
A supplemental asset has an empty scene file ID.
Sourcepub const REQUEST_DUPLICATE_ASSET_ID: Self
pub const REQUEST_DUPLICATE_ASSET_ID: Self
A supplemental scene file ID occurs more than once.
Sourcepub const REQUEST_INVALID_ASSET_MEDIA_TYPE: Self
pub const REQUEST_INVALID_ASSET_MEDIA_TYPE: Self
A supplemental asset advisory media type is malformed.
Sourcepub const REQUEST_INVALID_RESOURCE_LIMIT: Self
pub const REQUEST_INVALID_RESOURCE_LIMIT: Self
A semantic resource ceiling is zero, invalid, inconsistent, or too large.
Sourcepub const REQUEST_FORMAT_UNAVAILABLE: Self
pub const REQUEST_FORMAT_UNAVAILABLE: Self
The requested output format’s Cargo feature (png or pdf) is not
enabled in this build.
Sourcepub const SCENE_UNBOUNDED_GEOMETRY: Self
pub const SCENE_UNBOUNDED_GEOMETRY: Self
Finite whole-scene geometry could not be established.
Sourcepub const PDF_RASTER_FALLBACK_FORBIDDEN: Self
pub const PDF_RASTER_FALLBACK_FORBIDDEN: Self
A required PDF raster fallback was forbidden by the request.
Sourcepub const PDF_RASTER_FALLBACK_UNISOLATABLE: Self
pub const PDF_RASTER_FALLBACK_UNISOLATABLE: Self
A PDF raster fallback could not be isolated safely.
Sourcepub const RENDER_NO_MEANINGFUL_ARTIFACT: Self
pub const RENDER_NO_MEANINGFUL_ARTIFACT: Self
No meaningful complete artifact could be produced.
Sourcepub const RENDER_FONT_UNAVAILABLE: Self
pub const RENDER_FONT_UNAVAILABLE: Self
A demanded bundled font is unavailable in this build.
Sourcepub const ENCODE_SVG_FAILED: Self
pub const ENCODE_SVG_FAILED: Self
SVG encoding failed.
Sourcepub const ENCODE_SVG_FONT_SUBSET_FAILED: Self
pub const ENCODE_SVG_FONT_SUBSET_FAILED: Self
A required direct-SVG font subset could not be produced or validated.
Sourcepub const ENCODE_PNG_FAILED: Self
pub const ENCODE_PNG_FAILED: Self
PNG encoding failed.
Sourcepub const ENCODE_PDF_FAILED: Self
pub const ENCODE_PDF_FAILED: Self
PDF encoding failed.
Sourcepub const RENDER_INTERNAL_FAILURE: Self
pub const RENDER_INTERNAL_FAILURE: Self
An internal renderer invariant failed.
Sourcepub const RESOURCE_SCENE_BYTES_EXCEEDED: Self
pub const RESOURCE_SCENE_BYTES_EXCEEDED: Self
Admitted scene bytes exceed the configured semantic ceiling.
Sourcepub const RESOURCE_ELEMENT_COUNT_EXCEEDED: Self
pub const RESOURCE_ELEMENT_COUNT_EXCEEDED: Self
Source element occurrences exceed the configured ceiling.
Sourcepub const RESOURCE_ASSET_COUNT_EXCEEDED: Self
pub const RESOURCE_ASSET_COUNT_EXCEEDED: Self
Asset payload occurrences exceed the configured ceiling.
Sourcepub const RESOURCE_TOTAL_ASSET_BYTES_EXCEEDED: Self
pub const RESOURCE_TOTAL_ASSET_BYTES_EXCEEDED: Self
Aggregate asset bytes exceed the configured ceiling.
Sourcepub const RESOURCE_RELATIONSHIP_DEPTH_EXCEEDED: Self
pub const RESOURCE_RELATIONSHIP_DEPTH_EXCEEDED: Self
Relationship traversal exceeds the configured depth.
Sourcepub const RESOURCE_TOTAL_GEOMETRY_EXCEEDED: Self
pub const RESOURCE_TOTAL_GEOMETRY_EXCEEDED: Self
Aggregate geometry exceeds the configured segment ceiling.
Sourcepub const RESOURCE_TOTAL_TEXT_EXCEEDED: Self
pub const RESOURCE_TOTAL_TEXT_EXCEEDED: Self
Aggregate text exceeds the configured scalar ceiling.
Sourcepub const RESOURCE_TOTAL_DECODED_PIXELS_EXCEEDED: Self
pub const RESOURCE_TOTAL_DECODED_PIXELS_EXCEEDED: Self
Aggregate decoded pixels exceed the configured ceiling.
Sourcepub const RESOURCE_RASTER_SURFACE_EXCEEDED: Self
pub const RESOURCE_RASTER_SURFACE_EXCEEDED: Self
The required main raster surface exceeds a side or area ceiling.
Sourcepub const RESOURCE_TOTAL_RASTERIZED_PIXELS_EXCEEDED: Self
pub const RESOURCE_TOTAL_RASTERIZED_PIXELS_EXCEEDED: Self
Aggregate fallback rasterization exceeds the configured pixel ceiling.
Sourcepub const RESOURCE_SVG_DIMENSIONS_EXCEEDED: Self
pub const RESOURCE_SVG_DIMENSIONS_EXCEEDED: Self
Logical or scaled SVG dimensions exceed the configured ceiling.
Sourcepub const RESOURCE_PDF_PAGE_DIMENSIONS_EXCEEDED: Self
pub const RESOURCE_PDF_PAGE_DIMENSIONS_EXCEEDED: Self
PDF page dimensions exceed the configured point ceiling.
Sourcepub const RESOURCE_DIAGNOSTIC_COUNT_EXCEEDED: Self
pub const RESOURCE_DIAGNOSTIC_COUNT_EXCEEDED: Self
Diagnostic occurrences exceed the configured ceiling.
Sourcepub const RESOURCE_WORKING_BYTES_EXCEEDED: Self
pub const RESOURCE_WORKING_BYTES_EXCEEDED: Self
Canonical logical working bytes exceed the configured ceiling.
Sourcepub const RESOURCE_OUTPUT_BYTES_EXCEEDED: Self
pub const RESOURCE_OUTPUT_BYTES_EXCEEDED: Self
Complete artifact bytes exceed the configured ceiling.
Sourcepub const RESOURCE_TOTAL_WORK_EXCEEDED: Self
pub const RESOURCE_TOTAL_WORK_EXCEEDED: Self
Aggregate semantic work exceeds the configured ceiling.
Sourcepub const RESOURCE_COORDINATE_RANGE_EXCEEDED: Self
pub const RESOURCE_COORDINATE_RANGE_EXCEEDED: Self
A selected frame has no viewport within the coordinate ceiling.
Sourcepub const RESOURCE_MEMORY_UNAVAILABLE: Self
pub const RESOURCE_MEMORY_UNAVAILABLE: Self
A required physical allocation was unavailable.
Sourcepub const FRAME_BATCH_FOREIGN_TARGET: Self
pub const FRAME_BATCH_FOREIGN_TARGET: Self
A selected frame belongs to another scene document.
Sourcepub const FRAME_BATCH_DUPLICATE_TARGET: Self
pub const FRAME_BATCH_DUPLICATE_TARGET: Self
The same frame occurrence was selected more than once.
Sourcepub const FRAME_BATCH_SHARED_PREPARATION_FAILED: Self
pub const FRAME_BATCH_SHARED_PREPARATION_FAILED: Self
Shared target-neutral frame preparation could not be completed.
Sourcepub const SCENE_INVALID_UTF8: Self
pub const SCENE_INVALID_UTF8: Self
The scene-document bytes are not valid UTF-8.
Sourcepub const SCENE_INVALID_JSON: Self
pub const SCENE_INVALID_JSON: Self
The scene-document bytes do not contain valid JSON syntax.
Sourcepub const SCENE_INVALID_ENVELOPE: Self
pub const SCENE_INVALID_ENVELOPE: Self
The scene envelope does not have the required version-2 shape.
Sourcepub const SCENE_UNSUPPORTED_INPUT: Self
pub const SCENE_UNSUPPORTED_INPUT: Self
The input is a recognized file that is not a scene document: a PNG, SVG or PDF export, or an Excalidraw library or clipboard payload.
Sourcepub const SCENE_INPUT_TOO_LARGE: Self
pub const SCENE_INPUT_TOO_LARGE: Self
The scene-document bytes exceed the fixed parser input ceiling.
Sourcepub const SCENE_JSON_DEPTH_EXCEEDED: Self
pub const SCENE_JSON_DEPTH_EXCEEDED: Self
The JSON nesting exceeds the fixed parser depth ceiling.
Sourcepub const SCENE_JSON_STRUCTURE_EXCEEDED: Self
pub const SCENE_JSON_STRUCTURE_EXCEEDED: Self
The JSON structure exceeds the fixed parser entry ceiling.
Sourcepub const SCENE_STRING_TOO_LARGE: Self
pub const SCENE_STRING_TOO_LARGE: Self
A decoded string or the decoded-string aggregate exceeds its ceiling.
Sourcepub const SCENE_OBJECT_KEY_TOO_LARGE: Self
pub const SCENE_OBJECT_KEY_TOO_LARGE: Self
An object key exceeds the fixed parser key ceiling.
Sourcepub const SCENE_NUMBER_TOKEN_TOO_LARGE: Self
pub const SCENE_NUMBER_TOKEN_TOO_LARGE: Self
A number token exceeds the fixed parser token ceiling.
Sourcepub const SCENE_DUPLICATE_OBJECT_KEY: Self
pub const SCENE_DUPLICATE_OBJECT_KEY: Self
A later object member duplicates an earlier decoded key.
Sourcepub const SCENE_PARSE_MEMORY_EXCEEDED: Self
pub const SCENE_PARSE_MEMORY_EXCEEDED: Self
Canonical parser live bytes exceed the fixed parser memory ceiling.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.