pub enum DracoError {
DracoError(String),
IoError(String),
InvalidParameter(String),
UnsupportedVersion(String),
UnknownVersion(String),
UnsupportedFeature(String),
BitstreamVersionUnsupported,
BufferError(String),
}Expand description
Error returned by Draco decoding, encoding, and data model operations.
Variants§
DracoError(String)
Generic Draco error with a human-readable message.
IoError(String)
File or stream I/O error.
InvalidParameter(String)
Invalid caller-provided parameter.
UnsupportedVersion(String)
Bitstream version is known but unsupported.
UnknownVersion(String)
Bitstream version could not be identified.
UnsupportedFeature(String)
Bitstream uses a feature this crate does not support.
BitstreamVersionUnsupported
Bitstream version is outside the supported range.
BufferError(String)
Buffer read or write failed.
Trait Implementations§
Source§impl Clone for DracoError
impl Clone for DracoError
Source§fn clone(&self) -> DracoError
fn clone(&self) -> DracoError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DracoError
impl Debug for DracoError
Source§impl Display for DracoError
impl Display for DracoError
Source§impl Error for DracoError
impl Error for DracoError
1.30.0 · 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<()> for DracoError
impl From<()> for DracoError
Source§impl PartialEq for DracoError
impl PartialEq for DracoError
Source§fn eq(&self, other: &DracoError) -> bool
fn eq(&self, other: &DracoError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DracoError
Auto Trait Implementations§
impl Freeze for DracoError
impl RefUnwindSafe for DracoError
impl Send for DracoError
impl Sync for DracoError
impl Unpin for DracoError
impl UnsafeUnpin for DracoError
impl UnwindSafe for DracoError
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