#[non_exhaustive]pub enum LoadError {
Path(String),
Fbx(String),
Bake {
take: String,
message: String,
},
SourceFacts(SourceFactsError),
}Expand description
Errors returned while loading an FBX scene into the core model.
These errors describe input or parser failures. They do not represent
animation check findings; once a Document loads, semantic problems
are reported by animsmith-core checks instead.
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.
Path(String)
The input path could not be represented as UTF-8 for ufbx.
Fbx(String)
ufbx rejected or could not parse the file.
Bake
ufbx loaded the scene but failed while baking an animation take.
Fields
SourceFacts(SourceFactsError)
The loader produced source facts that violate the core binding contract.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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<SourceFactsError> for LoadError
impl From<SourceFactsError> for LoadError
Source§fn from(source: SourceFactsError) -> Self
fn from(source: SourceFactsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
impl UnwindSafe for LoadError
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