pub enum ThreeMfError {
Container(String),
Damaged {
part: String,
detail: String,
},
MissingPart {
part: String,
detail: String,
},
Unsupported {
part: String,
detail: String,
},
Bounds {
part: String,
detail: String,
},
Xml {
part: String,
detail: String,
},
Model {
part: String,
detail: String,
},
}Expand description
Why a 3MF package was refused. Every variant that belongs to a package part names it, so the message says where in the container the fault is.
Variants§
Container(String)
The bytes are not a readable OPC/ZIP container at all.
Damaged
A part is in the container but its bytes cannot be recovered: a bad local header, a short read, a failed CRC-32.
MissingPart
A part the core specification requires is absent.
Unsupported
A container or format feature this reader refuses on purpose.
Bounds
A part exceeds one of this reader’s documented bounds.
Xml
A part is not well-formed XML.
Model
A part is well-formed XML but violates the core specification.
Implementations§
Trait Implementations§
Source§impl Clone for ThreeMfError
impl Clone for ThreeMfError
Source§impl Debug for ThreeMfError
impl Debug for ThreeMfError
Source§impl Display for ThreeMfError
impl Display for ThreeMfError
impl Eq for ThreeMfError
Source§impl Error for ThreeMfError
impl Error for ThreeMfError
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 PartialEq for ThreeMfError
impl PartialEq for ThreeMfError
impl StructuralPartialEq for ThreeMfError
Auto Trait Implementations§
impl Forget for ThreeMfError
impl Freeze for ThreeMfError
impl Move for ThreeMfError
impl RefUnwindSafe for ThreeMfError
impl Send for ThreeMfError
impl Sync for ThreeMfError
impl Unpin for ThreeMfError
impl UnsafeUnpin for ThreeMfError
impl UnwindSafe for ThreeMfError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.