pub struct DiscoveryLimits { /* private fields */ }Expand description
Host-configurable resource envelope for legacy discovery phases two to four.
Implementations§
Source§impl DiscoveryLimits
impl DiscoveryLimits
Sourcepub const fn with_max_depth(self, limit: usize) -> Self
pub const fn with_max_depth(self, limit: usize) -> Self
Replaces the link-depth bound.
Sourcepub fn with_max_pages(self, limit: usize) -> Result<Self, ScannerError>
pub fn with_max_pages(self, limit: usize) -> Result<Self, ScannerError>
Replaces the page bound, rejecting values beyond retained state.
Sourcepub const fn with_max_requests(self, limit: u32) -> Self
pub const fn with_max_requests(self, limit: u32) -> Self
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_depth(self) -> usize
pub const fn max_depth(self) -> usize
Returns the maximum link depth, where the root is depth zero.
Sourcepub const fn max_requests(self) -> u32
pub const fn max_requests(self) -> u32
Returns the maximum shared HTTP dispatch count.
Sourcepub const fn request_timeout(self) -> Duration
pub const fn request_timeout(self) -> Duration
Returns the timeout applied to one request and its 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 DiscoveryLimits
impl Clone for DiscoveryLimits
Source§fn clone(&self) -> DiscoveryLimits
fn clone(&self) -> DiscoveryLimits
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 DiscoveryLimits
Source§impl Debug for DiscoveryLimits
impl Debug for DiscoveryLimits
Source§impl Default for DiscoveryLimits
impl Default for DiscoveryLimits
impl Eq for DiscoveryLimits
Source§impl PartialEq for DiscoveryLimits
impl PartialEq for DiscoveryLimits
impl StructuralPartialEq for DiscoveryLimits
Auto Trait Implementations§
impl Freeze for DiscoveryLimits
impl RefUnwindSafe for DiscoveryLimits
impl Send for DiscoveryLimits
impl Sync for DiscoveryLimits
impl Unpin for DiscoveryLimits
impl UnsafeUnpin for DiscoveryLimits
impl UnwindSafe for DiscoveryLimits
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.