pub enum ScrubError {
NotDocx(String),
NotUtf8,
Part {
part: String,
why: String,
},
TooLarge(String),
Picture {
name: String,
why: String,
},
}Expand description
Why a scrambled copy could not be made. The app then offers the original.
Variants§
NotDocx(String)
NotUtf8
Part
A part of the file that is damaged or in a form the scrubber does not handle: it would have to guess, and a guess is not a copy.
TooLarge(String)
Picture
A picture that cannot be blanked (damaged, or too large).
Trait Implementations§
Source§impl Debug for ScrubError
impl Debug for ScrubError
Source§impl Display for ScrubError
impl Display for ScrubError
Source§impl Error for ScrubError
impl Error for ScrubError
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()
Auto Trait Implementations§
impl Freeze for ScrubError
impl RefUnwindSafe for ScrubError
impl Send for ScrubError
impl Sync for ScrubError
impl Unpin for ScrubError
impl UnsafeUnpin for ScrubError
impl UnwindSafe for ScrubError
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