pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for creating Config with validation
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn intensity(self, intensity: ScanIntensity) -> Self
pub fn intensity(self, intensity: ScanIntensity) -> Self
Sets scan intensity
Sourcepub fn rate_limit(self, rps: u32) -> Self
pub fn rate_limit(self, rps: u32) -> Self
Sets rate limit (requests per second)
Sourcepub fn aggressive(self, enabled: bool) -> Self
pub fn aggressive(self, enabled: bool) -> Self
Enables aggressive scanning
Sourcepub fn max_payload_size(self, size: usize) -> Self
pub fn max_payload_size(self, size: usize) -> Self
Sets maximum payload size
Sourcepub fn option(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn option(self, key: impl Into<String>, value: impl Into<String>) -> Self
Adds custom option
Sourcepub fn verify_ssl(self, verify: bool) -> Self
pub fn verify_ssl(self, verify: bool) -> Self
Sets SSL verification
Sourcepub fn connect_timeout(self, secs: u64) -> Self
pub fn connect_timeout(self, secs: u64) -> Self
Sets connection timeout
Sourcepub fn build(self) -> Result<Config, ConfigError>
pub fn build(self) -> Result<Config, ConfigError>
Builds and validates configuration
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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