pub struct WebAssessmentLimits { /* private fields */ }Expand description
Checked resource and discovery envelope for one origin assessment.
Implementations§
Source§impl WebAssessmentLimits
impl WebAssessmentLimits
Sourcepub fn with_max_subjects(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_subjects( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the subject ceiling.
Sourcepub fn with_max_discovery_depth(
self,
value: u16,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_discovery_depth( self, value: u16, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the maximum discovery depth. Zero permits only the root.
Sourcepub fn with_max_references_per_document(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_references_per_document( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the per-document route-reference ceiling. Zero retains none.
Sourcepub fn with_max_canonical_url_bytes(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_canonical_url_bytes( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the canonical URL byte ceiling.
Sourcepub fn with_max_retained_url_bytes(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_retained_url_bytes( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the distinct canonical-URL identity byte ceiling.
Sourcepub fn with_max_forms(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_forms( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the total form ceiling. Zero retains no forms.
Sourcepub fn with_max_controls_per_form(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_controls_per_form( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the per-form control-name ceiling. Zero retains no names.
Sourcepub fn with_max_query_parameter_names(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_query_parameter_names( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the query-name ceiling per route or form. Zero retains none.
Sourcepub fn with_max_total_requests(
self,
value: u32,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_total_requests( self, value: u32, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the authority-wide request ceiling. Zero denies all dispatches.
Sourcepub fn with_max_response_body_bytes(
self,
value: usize,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_response_body_bytes( self, value: usize, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the per-response body ceiling.
Sourcepub fn with_max_total_response_bytes(
self,
value: u64,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_total_response_bytes( self, value: u64, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the authority-wide response-byte ceiling.
Sourcepub fn with_max_wall_time(
self,
value: Duration,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_wall_time( self, value: Duration, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the authority-wide wall-clock ceiling. Zero denies execution.
Sourcepub fn with_max_active_verifications(
self,
value: u16,
) -> Result<Self, WebAssessmentLimitsError>
pub fn with_max_active_verifications( self, value: u16, ) -> Result<Self, WebAssessmentLimitsError>
Replaces the active-verification ceiling. Zero denies active requests.
Sourcepub const fn max_subjects(self) -> usize
pub const fn max_subjects(self) -> usize
Returns the subject ceiling, including the root.
Sourcepub const fn max_discovery_depth(self) -> u16
pub const fn max_discovery_depth(self) -> u16
Returns the maximum depth after the root.
Sourcepub const fn max_references_per_document(self) -> usize
pub const fn max_references_per_document(self) -> usize
Returns the route-reference ceiling per document.
Sourcepub const fn max_canonical_url_bytes(self) -> usize
pub const fn max_canonical_url_bytes(self) -> usize
Returns the canonical URL byte ceiling.
Sourcepub const fn max_retained_url_bytes(self) -> usize
pub const fn max_retained_url_bytes(self) -> usize
Returns the byte ceiling charged once per distinct canonical URL.
Sourcepub const fn max_controls_per_form(self) -> usize
pub const fn max_controls_per_form(self) -> usize
Returns the control-name ceiling per form.
Sourcepub const fn max_query_parameter_names(self) -> usize
pub const fn max_query_parameter_names(self) -> usize
Returns the query-name ceiling per reference.
Sourcepub const fn max_total_requests(self) -> u32
pub const fn max_total_requests(self) -> u32
Returns the authority-wide request ceiling.
Sourcepub const fn max_response_body_bytes(self) -> usize
pub const fn max_response_body_bytes(self) -> usize
Returns the per-response body ceiling.
Sourcepub const fn max_total_response_bytes(self) -> u64
pub const fn max_total_response_bytes(self) -> u64
Returns the authority-wide response-byte ceiling.
Sourcepub const fn max_wall_time(self) -> Duration
pub const fn max_wall_time(self) -> Duration
Returns the authority-wide wall-clock ceiling.
Sourcepub const fn max_active_verifications(self) -> u16
pub const fn max_active_verifications(self) -> u16
Returns the authority-wide active-verification ceiling.
Sourcepub const fn concurrency(self) -> usize
pub const fn concurrency(self) -> usize
Returns the fixed concurrency boundary.
Trait Implementations§
Source§impl Clone for WebAssessmentLimits
impl Clone for WebAssessmentLimits
Source§fn clone(&self) -> WebAssessmentLimits
fn clone(&self) -> WebAssessmentLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WebAssessmentLimits
Source§impl Debug for WebAssessmentLimits
impl Debug for WebAssessmentLimits
Source§impl Default for WebAssessmentLimits
impl Default for WebAssessmentLimits
impl Eq for WebAssessmentLimits
Source§impl PartialEq for WebAssessmentLimits
impl PartialEq for WebAssessmentLimits
impl StructuralPartialEq for WebAssessmentLimits
Auto Trait Implementations§
impl Freeze for WebAssessmentLimits
impl RefUnwindSafe for WebAssessmentLimits
impl Send for WebAssessmentLimits
impl Sync for WebAssessmentLimits
impl Unpin for WebAssessmentLimits
impl UnsafeUnpin for WebAssessmentLimits
impl UnwindSafe for WebAssessmentLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.