pub struct ReliabilityLifecycleCommand {
pub name: String,
pub program: String,
pub args: Vec<String>,
pub timeout_secs: Option<u64>,
pub required_success: bool,
pub via_rch_exec: bool,
}Expand description
One deterministic lifecycle command invoked by the reliability scenario runner.
Fields§
§name: String§program: String§args: Vec<String>§timeout_secs: Option<u64>§required_success: bool§via_rch_exec: boolImplementations§
Source§impl ReliabilityLifecycleCommand
impl ReliabilityLifecycleCommand
Sourcepub fn new(
name: impl Into<String>,
program: impl Into<String>,
args: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn new( name: impl Into<String>, program: impl Into<String>, args: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Build a command with required-success semantics.
Sourcepub fn with_timeout_secs(self, timeout_secs: u64) -> Self
pub fn with_timeout_secs(self, timeout_secs: u64) -> Self
Override timeout in seconds for this command.
Sourcepub fn optional(self) -> Self
pub fn optional(self) -> Self
Marks this command optional; failures are logged but do not fail the scenario.
Sourcepub fn via_rch_exec(self) -> Self
pub fn via_rch_exec(self) -> Self
Run command via rch exec -- <program> <args...>.
Trait Implementations§
Source§impl Clone for ReliabilityLifecycleCommand
impl Clone for ReliabilityLifecycleCommand
Source§fn clone(&self) -> ReliabilityLifecycleCommand
fn clone(&self) -> ReliabilityLifecycleCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReliabilityLifecycleCommand
impl Debug for ReliabilityLifecycleCommand
Source§impl<'de> Deserialize<'de> for ReliabilityLifecycleCommand
impl<'de> Deserialize<'de> for ReliabilityLifecycleCommand
Source§fn 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
Source§impl PartialEq for ReliabilityLifecycleCommand
impl PartialEq for ReliabilityLifecycleCommand
Source§fn eq(&self, other: &ReliabilityLifecycleCommand) -> bool
fn eq(&self, other: &ReliabilityLifecycleCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReliabilityLifecycleCommand
impl StructuralPartialEq for ReliabilityLifecycleCommand
Auto Trait Implementations§
impl Freeze for ReliabilityLifecycleCommand
impl RefUnwindSafe for ReliabilityLifecycleCommand
impl Send for ReliabilityLifecycleCommand
impl Sync for ReliabilityLifecycleCommand
impl Unpin for ReliabilityLifecycleCommand
impl UnsafeUnpin for ReliabilityLifecycleCommand
impl UnwindSafe for ReliabilityLifecycleCommand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.