pub enum DocumentRefusal {
OutsideTheTree {
path: String,
},
Missing {
path: String,
},
Unreadable {
path: String,
why: String,
},
OverCeiling {
size_bytes: u64,
ceiling_bytes: u64,
},
PdfNotReviewable,
NotUtf8 {
path: String,
},
}Expand description
Why a document could not be read. Every arm is a sentence a viewer draws and a hand-off returns, so the reason travels with the refusal.
Variants§
Trait Implementations§
Source§impl Debug for DocumentRefusal
impl Debug for DocumentRefusal
Source§impl Display for DocumentRefusal
impl Display for DocumentRefusal
Source§impl Error for DocumentRefusal
impl Error for DocumentRefusal
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 DocumentRefusal
impl RefUnwindSafe for DocumentRefusal
impl Send for DocumentRefusal
impl Sync for DocumentRefusal
impl Unpin for DocumentRefusal
impl UnsafeUnpin for DocumentRefusal
impl UnwindSafe for DocumentRefusal
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