#[non_exhaustive]pub enum FixError {
Load(LoadError),
Write(WriteError),
}Expand description
fix errors are classified by defect, not by phase: LoadError
means the input was unreadable or malformed (even when detected
while assembling the output, e.g. re-deriving GLB chunk bounds or
validating an input-supplied buffer URI); WriteError means
emitting the output failed.
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.
Load(LoadError)
The input container could not be read, parsed, or safely framed.
Write(WriteError)
The patched output container could not be emitted.
Trait Implementations§
Source§impl Error for FixError
impl Error for FixError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<WriteError> for FixError
impl From<WriteError> for FixError
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FixError
impl !UnwindSafe for FixError
impl Freeze for FixError
impl Send for FixError
impl Sync for FixError
impl Unpin for FixError
impl UnsafeUnpin for FixError
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