pub enum GltfWriteError {
Io(Error),
Json(Error),
DracoEncode(DracoError),
EncoderInvariant(String),
InvalidMesh(String),
Unsupported(String),
InvalidOptions(String),
ResourceLimit(String),
Utf8(FromUtf8Error),
}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(DracoError)
Draco encoding failed.
EncoderInvariant(String)
The encoder violated its documented postcondition.
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.
InvalidOptions(String)
Compression options are outside their supported range.
ResourceLimit(String)
A checked size computation or allocation failed.
Utf8(FromUtf8Error)
Generated JSON was unexpectedly not UTF-8.
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
Source§impl From<Error> for GltfWriteError
impl From<Error> for GltfWriteError
Source§impl From<FromUtf8Error> for GltfWriteError
impl From<FromUtf8Error> for GltfWriteError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
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