pub enum ConvertError {
UnsupportedSource(String),
UnsupportedTarget(String),
MappingFailed {
page: usize,
object: String,
reason: String,
},
QualityBelowThreshold {
diff_ratio: f64,
threshold: f64,
},
Cancelled,
}Expand description
Conversion errors.
Variants§
UnsupportedSource(String)
Source format is not handled.
UnsupportedTarget(String)
Target format is not handled.
MappingFailed
A structure could not be mapped into the target format.
QualityBelowThreshold
Result quality fell below the accepted threshold.
Cancelled
Conversion was cancelled by the caller.
Trait Implementations§
Source§impl Debug for ConvertError
impl Debug for ConvertError
Source§impl Display for ConvertError
impl Display for ConvertError
Source§impl Error for ConvertError
impl Error for ConvertError
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<ConvertError> for OfdError
impl From<ConvertError> for OfdError
Source§fn from(source: ConvertError) -> Self
fn from(source: ConvertError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvertError
impl RefUnwindSafe for ConvertError
impl Send for ConvertError
impl Sync for ConvertError
impl Unpin for ConvertError
impl UnsafeUnpin for ConvertError
impl UnwindSafe for ConvertError
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