Skip to main content

ErrorCode

Struct ErrorCode 

Source
pub struct ErrorCode(/* private fields */);
Expand description

String-backed stable error code.

Implementations§

Source§

impl ErrorCode

Source

pub const REQUEST_INVALID_PADDING: Self

Request padding is negative or non-finite.

Source

pub const REQUEST_INVALID_SCALE: Self

Request scale is non-positive or non-finite.

Source

pub const REQUEST_INVALID_MAX_DIMENSION: Self

Request maximum dimension is non-positive or non-finite.

Source

pub const REQUEST_INCOMPATIBLE_FORMAT_OPTIONS: Self

Format-specific options were supplied for another output format.

Source

pub const REQUEST_EMPTY_ASSET_ID: Self

A supplemental asset has an empty scene file ID.

Source

pub const REQUEST_DUPLICATE_ASSET_ID: Self

A supplemental scene file ID occurs more than once.

Source

pub const REQUEST_INVALID_ASSET_MEDIA_TYPE: Self

A supplemental asset advisory media type is malformed.

Source

pub const REQUEST_INVALID_RESOURCE_LIMIT: Self

A semantic resource ceiling is zero, invalid, inconsistent, or too large.

Source

pub const REQUEST_FORMAT_UNAVAILABLE: Self

The requested output format’s Cargo feature (png or pdf) is not enabled in this build.

Source

pub const SCENE_UNBOUNDED_GEOMETRY: Self

Finite whole-scene geometry could not be established.

Source

pub const PDF_RASTER_FALLBACK_FORBIDDEN: Self

A required PDF raster fallback was forbidden by the request.

Source

pub const PDF_RASTER_FALLBACK_UNISOLATABLE: Self

A PDF raster fallback could not be isolated safely.

Source

pub const RENDER_NO_MEANINGFUL_ARTIFACT: Self

No meaningful complete artifact could be produced.

Source

pub const RENDER_FONT_UNAVAILABLE: Self

A demanded bundled font is unavailable in this build.

Source

pub const ENCODE_SVG_FAILED: Self

SVG encoding failed.

Source

pub const ENCODE_SVG_FONT_SUBSET_FAILED: Self

A required direct-SVG font subset could not be produced or validated.

Source

pub const ENCODE_PNG_FAILED: Self

PNG encoding failed.

Source

pub const ENCODE_PDF_FAILED: Self

PDF encoding failed.

Source

pub const RENDER_INTERNAL_FAILURE: Self

An internal renderer invariant failed.

Source

pub const RESOURCE_SCENE_BYTES_EXCEEDED: Self

Admitted scene bytes exceed the configured semantic ceiling.

Source

pub const RESOURCE_ELEMENT_COUNT_EXCEEDED: Self

Source element occurrences exceed the configured ceiling.

Source

pub const RESOURCE_ASSET_COUNT_EXCEEDED: Self

Asset payload occurrences exceed the configured ceiling.

Source

pub const RESOURCE_TOTAL_ASSET_BYTES_EXCEEDED: Self

Aggregate asset bytes exceed the configured ceiling.

Source

pub const RESOURCE_RELATIONSHIP_DEPTH_EXCEEDED: Self

Relationship traversal exceeds the configured depth.

Source

pub const RESOURCE_TOTAL_GEOMETRY_EXCEEDED: Self

Aggregate geometry exceeds the configured segment ceiling.

Source

pub const RESOURCE_TOTAL_TEXT_EXCEEDED: Self

Aggregate text exceeds the configured scalar ceiling.

Source

pub const RESOURCE_TOTAL_DECODED_PIXELS_EXCEEDED: Self

Aggregate decoded pixels exceed the configured ceiling.

Source

pub const RESOURCE_RASTER_SURFACE_EXCEEDED: Self

The required main raster surface exceeds a side or area ceiling.

Source

pub const RESOURCE_TOTAL_RASTERIZED_PIXELS_EXCEEDED: Self

Aggregate fallback rasterization exceeds the configured pixel ceiling.

Source

pub const RESOURCE_SVG_DIMENSIONS_EXCEEDED: Self

Logical or scaled SVG dimensions exceed the configured ceiling.

Source

pub const RESOURCE_PDF_PAGE_DIMENSIONS_EXCEEDED: Self

PDF page dimensions exceed the configured point ceiling.

Source

pub const RESOURCE_DIAGNOSTIC_COUNT_EXCEEDED: Self

Diagnostic occurrences exceed the configured ceiling.

Source

pub const RESOURCE_WORKING_BYTES_EXCEEDED: Self

Canonical logical working bytes exceed the configured ceiling.

Source

pub const RESOURCE_OUTPUT_BYTES_EXCEEDED: Self

Complete artifact bytes exceed the configured ceiling.

Source

pub const RESOURCE_TOTAL_WORK_EXCEEDED: Self

Aggregate semantic work exceeds the configured ceiling.

Source

pub const RESOURCE_COORDINATE_RANGE_EXCEEDED: Self

A selected frame has no viewport within the coordinate ceiling.

Source

pub const RESOURCE_MEMORY_UNAVAILABLE: Self

A required physical allocation was unavailable.

Source

pub const FRAME_BATCH_FOREIGN_TARGET: Self

A selected frame belongs to another scene document.

Source

pub const FRAME_BATCH_DUPLICATE_TARGET: Self

The same frame occurrence was selected more than once.

Source

pub const FRAME_BATCH_SHARED_PREPARATION_FAILED: Self

Shared target-neutral frame preparation could not be completed.

Source

pub const SCENE_INVALID_UTF8: Self

The scene-document bytes are not valid UTF-8.

Source

pub const SCENE_INVALID_JSON: Self

The scene-document bytes do not contain valid JSON syntax.

Source

pub const SCENE_INVALID_ENVELOPE: Self

The scene envelope does not have the required version-2 shape.

Source

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.

Source

pub const SCENE_INPUT_TOO_LARGE: Self

The scene-document bytes exceed the fixed parser input ceiling.

Source

pub const SCENE_JSON_DEPTH_EXCEEDED: Self

The JSON nesting exceeds the fixed parser depth ceiling.

Source

pub const SCENE_JSON_STRUCTURE_EXCEEDED: Self

The JSON structure exceeds the fixed parser entry ceiling.

Source

pub const SCENE_STRING_TOO_LARGE: Self

A decoded string or the decoded-string aggregate exceeds its ceiling.

Source

pub const SCENE_OBJECT_KEY_TOO_LARGE: Self

An object key exceeds the fixed parser key ceiling.

Source

pub const SCENE_NUMBER_TOKEN_TOO_LARGE: Self

A number token exceeds the fixed parser token ceiling.

Source

pub const SCENE_DUPLICATE_OBJECT_KEY: Self

A later object member duplicates an earlier decoded key.

Source

pub const SCENE_PARSE_MEMORY_EXCEEDED: Self

Canonical parser live bytes exceed the fixed parser memory ceiling.

Source

pub const fn as_str(self) -> &'static str

Returns the stable serialized spelling.

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorCode

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ErrorCode

Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ErrorCode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.