pub struct GrpcLimits {
pub max_depth: u32,
pub max_fields: u32,
pub max_leaves: usize,
}Expand description
Caps that bound the parser’s own work (anti-DoS during parsing) and surface the
structural signal. max_depth/max_fields doubling as the parser bound and the
module’s cap is deliberate: parsing past a cap that already forces a Reject is wasted
work. max_leaves bounds the extracted content surface.
Fields§
§max_depth: u32§max_fields: u32§max_leaves: usizeTrait Implementations§
Source§impl Clone for GrpcLimits
impl Clone for GrpcLimits
Source§fn clone(&self) -> GrpcLimits
fn clone(&self) -> GrpcLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GrpcLimits
Source§impl Debug for GrpcLimits
impl Debug for GrpcLimits
Auto Trait Implementations§
impl Freeze for GrpcLimits
impl RefUnwindSafe for GrpcLimits
impl Send for GrpcLimits
impl Sync for GrpcLimits
impl Unpin for GrpcLimits
impl UnsafeUnpin for GrpcLimits
impl UnwindSafe for GrpcLimits
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