pub enum LimitError {
FileTooLarge {
actual_bytes: u64,
limit_bytes: u64,
},
StreamTooLarge {
actual_bytes: u64,
limit_bytes: u64,
},
ImageTooLarge {
width: u64,
height: u64,
pixels: u64,
limit_pixels: u64,
},
ObjectDepthExceeded {
depth: u32,
limit: u32,
},
TooManyOperators {
count: u64,
limit: u64,
},
XfaNestingTooDeep {
depth: u32,
limit: u32,
},
FormCalcRecursionTooDeep {
depth: u32,
limit: u32,
},
}Expand description
Error returned when a resource limit is exceeded.
Variants§
FileTooLarge
PDF file exceeds the maximum allowed size.
StreamTooLarge
A decompressed stream exceeds the maximum allowed size.
ImageTooLarge
An image exceeds the maximum allowed pixel count.
ObjectDepthExceeded
An object reference chain exceeds the maximum allowed depth.
TooManyOperators
A content stream has too many operators.
XfaNestingTooDeep
XFA template nesting is too deep.
FormCalcRecursionTooDeep
FormCalc recursion is too deep.
Trait Implementations§
Source§impl Clone for LimitError
impl Clone for LimitError
Source§fn clone(&self) -> LimitError
fn clone(&self) -> LimitError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LimitError
impl Debug for LimitError
Source§impl Display for LimitError
impl Display for LimitError
Source§impl Error for LimitError
impl Error for LimitError
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 LimitError
impl PartialEq for LimitError
impl Eq for LimitError
impl StructuralPartialEq for LimitError
Auto Trait Implementations§
impl Freeze for LimitError
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnsafeUnpin for LimitError
impl UnwindSafe for LimitError
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.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