pub enum ErrorCode {
Show 18 variants
SchemaSyntax,
SchemaVersion,
SchemaField,
DataType,
DataCycle,
AssetSandbox,
AssetInvalid,
FontMissing,
GeometryInvalid,
LayoutInvalid,
LayoutNonConvergent,
PatchInvalid,
PatchLocked,
ExportUnsupported,
ExportWrite,
LimitExceeded,
Cancelled,
Validation,
}Expand description
Stable machine-readable failure code.
Variants§
SchemaSyntax
Source is not syntactically valid.
SchemaVersion
Source schema version is absent or unsupported.
SchemaField
Source contains an invalid field or value.
DataType
A typed data value or binding is invalid.
DataCycle
Computed data contains a dependency cycle.
AssetSandbox
An asset reference violates the resolver sandbox.
AssetInvalid
An asset is missing or invalid.
FontMissing
A required font or glyph is unavailable.
GeometryInvalid
Geometry overflowed or violates an invariant.
LayoutInvalid
Layout constraints cannot be resolved.
LayoutNonConvergent
Collision/reflow did not converge within the configured bound.
PatchInvalid
A patch is malformed or targets an absent node.
PatchLocked
A patch attempted to mutate a locked node.
ExportUnsupported
The requested exporter does not support a required feature.
ExportWrite
The output writer failed.
LimitExceeded
A configured resource budget was exceeded.
Cancelled
Cooperative cancellation was requested.
Validation
Validation or preflight rejected the requested operation.
Implementations§
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.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.