pub struct AttackConfig {Show 15 fields
pub rate: f64,
pub duration: Option<Duration>,
pub timeout: Duration,
pub workers: u64,
pub max_workers: Option<u64>,
pub keepalive: bool,
pub connections: usize,
pub max_connections: Option<usize>,
pub http2: bool,
pub name: Option<String>,
pub max_body: i64,
pub dns_ttl: Duration,
pub laddr: String,
pub lazy: bool,
pub opentelemetry_addr: Option<String>,
}Expand description
Represents attack parameters
Fields§
§rate: f64Rate of requests (requests per second)
duration: Option<Duration>Duration of the attack
timeout: DurationTimeout for each request
workers: u64Number of workers
max_workers: Option<u64>Maximum number of workers
keepalive: boolWhether to keep connections alive
connections: usizeMaximum number of connections per host
max_connections: Option<usize>Maximum number of connections per host
http2: boolHTTP/2 support
name: Option<String>Name of the attack
max_body: i64Maximum number of bytes to capture from response bodies
dns_ttl: DurationCache DNS lookups for the given duration
laddr: StringLocal IP address
lazy: boolRead targets lazily
opentelemetry_addr: Option<String>OpenTelemetry exporter listen address
Trait Implementations§
Source§impl Clone for AttackConfig
impl Clone for AttackConfig
Source§fn clone(&self) -> AttackConfig
fn clone(&self) -> AttackConfig
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 moreAuto Trait Implementations§
impl Freeze for AttackConfig
impl RefUnwindSafe for AttackConfig
impl Send for AttackConfig
impl Sync for AttackConfig
impl Unpin for AttackConfig
impl UnsafeUnpin for AttackConfig
impl UnwindSafe for AttackConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request