Expand description
Optionally defines a subset of active Scenarios to run during a load test.
Fields
active: Vec<String>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Scenarios
impl<'de> Deserialize<'de> for Scenarios
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromStr for Scenarios
impl FromStr for Scenarios
Implement FromStr
to convert "foo,bar"
comma separated string to a vector of strings.
sourceimpl Options for Scenarios
impl Options for Scenarios
sourcefn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
Parses arguments until the given parser is exhausted or until
an error is encountered. Read more
sourcefn command(&self) -> Option<&dyn Options>
fn command(&self) -> Option<&dyn Options>
Returns the subcommand instance, if present. Read more
sourcefn command_name(&self) -> Option<&'static str>
fn command_name(&self) -> Option<&'static str>
Returns the name of a parsed command, if present. Read more
sourcefn help_requested(&self) -> bool
fn help_requested(&self) -> bool
Returns whether the user supplied a “help” option to request
usage information about the program or any contained subcommands. Read more
sourcefn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
Parses options for the named command.
sourcefn usage() -> &'static str
fn usage() -> &'static str
Returns a string showing usage and help for each supported option. Read more
sourcefn self_usage(&self) -> &'static str
fn self_usage(&self) -> &'static str
Returns a string showing usage and help for this options instance. Read more
sourcefn command_list() -> Option<&'static str>
fn command_list() -> Option<&'static str>
Returns a string listing available commands and help text. Read more
sourcefn command_usage(_name: &str) -> Option<&'static str>
fn command_usage(_name: &str) -> Option<&'static str>
Returns a usage string for the named command. Read more
sourcefn self_command_list(&self) -> Option<&'static str>
fn self_command_list(&self) -> Option<&'static str>
Returns a listing of available commands and help text. Read more
sourcefn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>where
S: AsRef<str>,
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>where
S: AsRef<str>,
Parses arguments received from the command line. Read more
sourcefn parse_args_or_exit(style: ParsingStyle) -> Self
fn parse_args_or_exit(style: ParsingStyle) -> Self
Parses arguments from the environment. Read more
sourcefn parse_args_default_or_exit() -> Self
fn parse_args_default_or_exit() -> Self
Parses arguments from the environment, using the default
parsing style. Read more
sourcefn parse_args_default<S>(args: &[S]) -> Result<Self, Error>where
S: AsRef<str>,
fn parse_args_default<S>(args: &[S]) -> Result<Self, Error>where
S: AsRef<str>,
Parses arguments received from the command line,
using the default parsing style. Read more
Auto Trait Implementations
impl RefUnwindSafe for Scenarios
impl Send for Scenarios
impl Sync for Scenarios
impl Unpin for Scenarios
impl UnwindSafe for Scenarios
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more