Enum s2n_netbench::operation::Router
source · pub enum Router {
Show 19 variants
Sleep {
amount: Duration,
},
ServerBufferCount {
packet_count: u32,
},
ServerDropRate {
packet_count: u32,
},
ServerReorderRate {
packet_count: u32,
},
ServerCorruptRate {
packet_count: u32,
},
ServerDelay {
amount: Duration,
},
ServerJitter {
amount: Duration,
},
ServerMtu {
mtu: u16,
},
ClientBufferCount {
packet_count: u32,
},
ClientDropRate {
packet_count: u32,
},
ClientReorderRate {
packet_count: u32,
},
ClientCorruptRate {
packet_count: u32,
},
ClientDelay {
amount: Duration,
},
ClientJitter {
amount: Duration,
},
ClientMtu {
mtu: u16,
},
ClientRebindPortRate {
packet_count: u32,
},
ClientRebindAddressRate {
packet_count: u32,
},
RebindAll {
ports: bool,
addresses: bool,
},
Trace {
trace_id: u64,
},
}
Variants§
Sleep
Pause for the specified duration before processing the next op
ServerBufferCount
Set the number of packets that can be buffered server->client
ServerDropRate
Set the chance of a server->client packet being dropped
ServerReorderRate
Set the chance of a server->client packet being reordered
ServerCorruptRate
Set the chance of a server->client packet being corrupted
ServerDelay
Set the amount of delay for server->client packets
ServerJitter
Set the amount of jitter for server->client packets
ServerMtu
Set the server->client MTU
ClientBufferCount
Set the number of packets that can be buffered server->client
ClientDropRate
Set the chance of a client->server packet being dropped
ClientReorderRate
Set the chance of a client->server packet being reordered
ClientCorruptRate
Set the chance of a client->server packet being corrupted
ClientDelay
Set the amount of delay for client->server packets
ClientJitter
Set the amount of jitter for client->server packets
ClientMtu
Set the client->server MTU
ClientRebindPortRate
Set the chance of a port being rebound
ClientRebindAddressRate
Set the chance of an IP being rebound
RebindAll
Rebinds all of the ports and/or addresses currently being used
Trace
Emit a trace event