Enum noxious_client::ToxicKind[][src]

pub enum ToxicKind {
    Noop,
    Latency {
        latency: u64,
        jitter: u64,
    },
    Timeout {
        timeout: u64,
    },
    Bandwidth {
        rate: u64,
    },
    SlowClose {
        delay: u64,
    },
    Slicer {
        average_size: u64,
        size_variation: u64,
        delay: u64,
    },
    LimitData {
        bytes: u64,
    },
}

Toxic kind and toxic-specific attributes

Variants

Noop

Passes all data through without any toxic effects

Latency

Passes data through with the a delay of latency +/- jitter added

Fields of Latency

latency: u64

Latency to be added, in milliseconds

jitter: u64

Jitter to be added to the latency, also in milliseconds

Timeout

Stops any data from flowing through, and will close the connection after a timeout

Fields of Timeout

timeout: u64

in milliseconds

Bandwidth

Passes data through at a limited rate

Fields of Bandwidth

rate: u64

in KB/S

SlowClose

Stops the TCP connection from closing until after a delay

Fields of SlowClose

delay: u64

in milliseconds

Slicer

Slices data into multiple smaller packets

Fields of Slicer

average_size: u64

Average number of bytes to slice at

size_variation: u64

+/- bytes to vary sliced amounts. Must be less than the average size

delay: u64

Microseconds to delay each packet.

LimitData

Adds a limit of bytes transferred to the proxy session

Fields of LimitData

bytes: u64

the limit

Trait Implementations

impl Clone for ToxicKind[src]

impl Copy for ToxicKind[src]

impl Debug for ToxicKind[src]

impl<'de> Deserialize<'de> for ToxicKind[src]

impl Display for ToxicKind[src]

impl PartialEq<ToxicKind> for ToxicKind[src]

impl Serialize for ToxicKind[src]

impl StructuralPartialEq for ToxicKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,