pub struct VerificationLimits { /* private fields */ }Expand description
Host-configurable resource envelope shared by legacy phases five to nine.
The authority permits only bodyless, exact-origin requests through the redirect- and retry-disabled broker. It does not grant verifier transition authority: a completed request is still only a probe receipt or bounded observation until an existing verifier contract evaluates its evidence.
Implementations§
Source§impl VerificationLimits
impl VerificationLimits
Sourcepub fn with_max_requests(self, limit: u32) -> Result<Self, ScannerError>
pub fn with_max_requests(self, limit: u32) -> Result<Self, ScannerError>
Replaces the shared dispatch bound. Zero denies every request.
Sourcepub fn with_request_timeout(self, limit: Duration) -> Result<Self, ScannerError>
pub fn with_request_timeout(self, limit: Duration) -> Result<Self, ScannerError>
Replaces the timeout for one request at millisecond precision.
Sourcepub fn with_max_wall_time(self, limit: Duration) -> Result<Self, ScannerError>
pub fn with_max_wall_time(self, limit: Duration) -> Result<Self, ScannerError>
Replaces the shared monotonic wall-clock bound at millisecond precision.
Sourcepub fn with_body_limits(
self,
cumulative: u64,
per_response: usize,
) -> Result<Self, ScannerError>
pub fn with_body_limits( self, cumulative: u64, per_response: usize, ) -> Result<Self, ScannerError>
Replaces cumulative and per-response body ceilings together.
Sourcepub const fn max_requests(self) -> u32
pub const fn max_requests(self) -> u32
Returns the maximum shared active-verification dispatch count.
Sourcepub const fn request_timeout(self) -> Duration
pub const fn request_timeout(self) -> Duration
Returns the timeout applied to one request and bounded body read.
Sourcepub const fn max_wall_time(self) -> Duration
pub const fn max_wall_time(self) -> Duration
Returns the shared monotonic wall-clock allowance.
Sourcepub const fn max_cumulative_body_bytes(self) -> u64
pub const fn max_cumulative_body_bytes(self) -> u64
Returns the cumulative delivered response-body allowance.
Sourcepub const fn max_response_body_bytes(self) -> usize
pub const fn max_response_body_bytes(self) -> usize
Returns the retained body ceiling for one response.
Trait Implementations§
Source§impl Clone for VerificationLimits
impl Clone for VerificationLimits
Source§fn clone(&self) -> VerificationLimits
fn clone(&self) -> VerificationLimits
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 VerificationLimits
Source§impl Debug for VerificationLimits
impl Debug for VerificationLimits
Source§impl Default for VerificationLimits
impl Default for VerificationLimits
impl Eq for VerificationLimits
Source§impl PartialEq for VerificationLimits
impl PartialEq for VerificationLimits
impl StructuralPartialEq for VerificationLimits
Auto Trait Implementations§
impl Freeze for VerificationLimits
impl RefUnwindSafe for VerificationLimits
impl Send for VerificationLimits
impl Sync for VerificationLimits
impl Unpin for VerificationLimits
impl UnsafeUnpin for VerificationLimits
impl UnwindSafe for VerificationLimits
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.