pub enum GltfWriteError {
Io(Error),
Json(Error),
DracoEncode(String),
InvalidMesh(String),
Unsupported(String),
}Available on crate feature
gltf-writer only.Expand description
Errors that can occur when writing glTF files.
Variants§
Io(Error)
Filesystem or stream I/O failed.
Json(Error)
glTF JSON serialization failed.
DracoEncode(String)
Draco encoding failed.
InvalidMesh(String)
Mesh data cannot be represented as supported glTF Draco geometry.
Unsupported(String)
The mesh or scene uses a feature outside this writer’s supported scope.
Trait Implementations§
Source§impl Debug for GltfWriteError
impl Debug for GltfWriteError
Source§impl Display for GltfWriteError
impl Display for GltfWriteError
Source§impl Error for GltfWriteError
impl Error for GltfWriteError
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<Error> for GltfWriteError
impl From<Error> for GltfWriteError
Auto Trait Implementations§
impl !RefUnwindSafe for GltfWriteError
impl !UnwindSafe for GltfWriteError
impl Freeze for GltfWriteError
impl Send for GltfWriteError
impl Sync for GltfWriteError
impl Unpin for GltfWriteError
impl UnsafeUnpin for GltfWriteError
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