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.
Implementations§
Source§impl DracoError
impl DracoError
Sourcepub fn is_count_exceeds_bitstream(&self) -> bool
pub fn is_count_exceeds_bitstream(&self) -> bool
Whether this is the decoder’s count-vs-size preflight refusal.
It is the one decode refusal a caller may legitimately want to tell
apart: the bound it applies assumes at least one bit per point or face,
which highly repetitive geometry can beat, so this is also the refusal
that can be a false positive. See the decoder-count-guard-is-unsound
entry in hardening_status.yaml.
Trait Implementations§
Source§impl Clone for DracoError
impl Clone for DracoError
Source§fn clone(&self) -> DracoError
fn clone(&self) -> DracoError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()