Struct cfspeedtest::SpeedTestCLIOptions
source · pub struct SpeedTestCLIOptions {
pub nr_tests: u32,
pub nr_latency_tests: u32,
pub max_payload_size: PayloadSize,
pub output_format: OutputFormat,
pub verbose: bool,
pub ipv4: bool,
pub ipv6: bool,
pub disable_dynamic_max_payload_size: bool,
}Expand description
Unofficial CLI for speed.cloudflare.com
Fields§
§nr_tests: u32Number of test runs per payload size. Needs to be at least 4
nr_latency_tests: u32Number of latency tests to run
max_payload_size: PayloadSizeThe max payload size in bytes to use [100k, 1m, 10m, 25m or 100m]
output_format: OutputFormatSet the output format [csv, json or json-pretty] > This silences all other output to stdout
verbose: boolEnable verbose output i.e. print boxplots of the measurements
ipv4: boolForce usage of IPv4
ipv6: boolForce usage of IPv6
disable_dynamic_max_payload_size: boolDisables dynamically skipping tests with larger payload sizes if the tests for the previous payload size took longer than 5 seconds
Trait Implementations§
source§impl Args for SpeedTestCLIOptions
impl Args for SpeedTestCLIOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for SpeedTestCLIOptions
impl CommandFactory for SpeedTestCLIOptions
source§impl Debug for SpeedTestCLIOptions
impl Debug for SpeedTestCLIOptions
source§impl FromArgMatches for SpeedTestCLIOptions
impl FromArgMatches for SpeedTestCLIOptions
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for SpeedTestCLIOptions
impl Parser for SpeedTestCLIOptions
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl RefUnwindSafe for SpeedTestCLIOptions
impl Send for SpeedTestCLIOptions
impl Sync for SpeedTestCLIOptions
impl Unpin for SpeedTestCLIOptions
impl UnwindSafe for SpeedTestCLIOptions
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