pub struct ResourceLimitExceeded {
pub operation: &'static str,
pub axis: ResourceLimitAxis,
pub found: u64,
pub limit: u64,
pub page_number: Option<usize>,
pub width: Option<u32>,
pub height: Option<u32>,
}Expand description
A configured resource limit was exceeded by a public decode/render operation.
Fields§
§operation: &'static strPublic entry point that rejected the input (for example "document.parse"
or "render_pixmap").
axis: ResourceLimitAxisWhich limit axis was exceeded.
found: u64Observed value that exceeded the limit.
limit: u64Configured limit for the axis.
page_number: Option<usize>1-based page number when Self::axis is ResourceLimitAxis::PagePixels.
width: Option<u32>Page or render width when relevant.
height: Option<u32>Page or render height when relevant.
Trait Implementations§
Source§impl Clone for ResourceLimitExceeded
impl Clone for ResourceLimitExceeded
Source§impl Debug for ResourceLimitExceeded
impl Debug for ResourceLimitExceeded
Source§impl Display for ResourceLimitExceeded
impl Display for ResourceLimitExceeded
impl Eq for ResourceLimitExceeded
Source§impl Error for ResourceLimitExceeded
impl Error for ResourceLimitExceeded
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<ResourceLimitExceeded> for DocError
impl From<ResourceLimitExceeded> for DocError
Source§fn from(source: ResourceLimitExceeded) -> Self
fn from(source: ResourceLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl From<ResourceLimitExceeded> for RenderError
impl From<ResourceLimitExceeded> for RenderError
Source§fn from(source: ResourceLimitExceeded) -> Self
fn from(source: ResourceLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResourceLimitExceeded
impl PartialEq for ResourceLimitExceeded
impl StructuralPartialEq for ResourceLimitExceeded
Auto Trait Implementations§
impl Freeze for ResourceLimitExceeded
impl RefUnwindSafe for ResourceLimitExceeded
impl Send for ResourceLimitExceeded
impl Sync for ResourceLimitExceeded
impl Unpin for ResourceLimitExceeded
impl UnsafeUnpin for ResourceLimitExceeded
impl UnwindSafe for ResourceLimitExceeded
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<E> ErrorClone for E
impl<E> ErrorClone for E
Source§fn clone_box(&self) -> Box<dyn ErrorClone>
fn clone_box(&self) -> Box<dyn ErrorClone>
Clone the error.
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