pub enum Lib3mfError {
Io(Error),
Validation(String),
ResourceNotFound(u32),
InvalidStructure(String),
EncryptionError(String),
FeatureNotEnabled(String, String),
}Expand description
The main error type for all fallible operations in lib3mf-core.
Variants§
Io(Error)
An I/O error occurred (file not found, permission denied, ZIP read failure, etc.).
Validation(String)
The model failed a validation check at the requested level.
ResourceNotFound(u32)
A referenced resource ID does not exist in the model.
InvalidStructure(String)
The 3MF structure is malformed (missing required elements, spec violations, etc.).
EncryptionError(String)
A cryptographic operation failed (wrong key, tampered data, unsupported algorithm).
FeatureNotEnabled(String, String)
The requested operation requires a cargo feature that was not enabled at compile time.
Trait Implementations§
Source§impl Debug for Lib3mfError
impl Debug for Lib3mfError
Source§impl Display for Lib3mfError
impl Display for Lib3mfError
Source§impl Error for Lib3mfError
impl Error for Lib3mfError
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()
Auto Trait Implementations§
impl Freeze for Lib3mfError
impl !RefUnwindSafe for Lib3mfError
impl Send for Lib3mfError
impl Sync for Lib3mfError
impl Unpin for Lib3mfError
impl UnsafeUnpin for Lib3mfError
impl !UnwindSafe for Lib3mfError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more