pub struct ErrorDescriptor { /* private fields */ }Expand description
Stable serializable view of a typed renderer failure.
Implementations§
Source§impl ErrorDescriptor
impl ErrorDescriptor
Sourcepub const fn family(&self) -> ErrorFamily
pub const fn family(&self) -> ErrorFamily
Returns the typed failure family.
Sourcepub const fn category(&self) -> Option<RenderErrorCategory>
pub const fn category(&self) -> Option<RenderErrorCategory>
Returns the render-failure category, when applicable.
Sourcepub const fn format(&self) -> Option<OutputFormat>
pub const fn format(&self) -> Option<OutputFormat>
Returns the selected output format, when applicable.
Sourcepub fn element_id(&self) -> Option<&str>
pub fn element_id(&self) -> Option<&str>
Returns the normalized element ID, when applicable.
Sourcepub fn json_pointer(&self) -> Option<&str>
pub fn json_pointer(&self) -> Option<&str>
Returns the scene-document JSON pointer, when applicable.
Sourcepub const fn details(&self) -> Option<&DiagnosticDetails>
pub const fn details(&self) -> Option<&DiagnosticDetails>
Returns typed details required by the stable error code.
Trait Implementations§
Source§impl Clone for ErrorDescriptor
impl Clone for ErrorDescriptor
Source§impl Debug for ErrorDescriptor
impl Debug for ErrorDescriptor
Source§impl PartialEq for ErrorDescriptor
impl PartialEq for ErrorDescriptor
Source§impl Serialize for ErrorDescriptor
impl Serialize for ErrorDescriptor
impl StructuralPartialEq for ErrorDescriptor
Auto Trait Implementations§
impl Freeze for ErrorDescriptor
impl RefUnwindSafe for ErrorDescriptor
impl Send for ErrorDescriptor
impl Sync for ErrorDescriptor
impl Unpin for ErrorDescriptor
impl UnsafeUnpin for ErrorDescriptor
impl UnwindSafe for ErrorDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Convert this type into
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
Convert this type into
T, using the provided data to resolve any offsets.