pub struct Config {
pub sock_timeout: Duration,
pub https: bool,
pub addr: String,
pub port: u16,
pub rand_ua: bool,
pub socket_count: usize,
pub dos_type: DOSType,
pub delay: u64,
pub read_size: usize,
}
Expand description
Config of the DOS attack
Fields§
§sock_timeout: Duration
§https: bool
https toggle
addr: String
Target Address
port: u16
Port to attack
rand_ua: bool
Use random User agents or not
socket_count: usize
Amount of sockets to use
dos_type: DOSType
Type of DOS to use
delay: u64
Amount of time to wait in between packets
read_size: usize
Size of read buffer for SlowRead attack
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more