pub struct Action { /* private fields */ }Expand description
QEMU -action event handlers.
QEMU accepts a comma-separated list of event assignments such as
reboot=shutdown,shutdown=pause. This type preserves those assignments in
canonical field order.
Implementations§
Trait Implementations§
Source§impl Arbitrary for Action
impl Arbitrary for Action
Source§type Parameters = (<Option<RebootAction> as Arbitrary>::Parameters, <Option<ShutdownAction> as Arbitrary>::Parameters, <Option<PanicAction> as Arbitrary>::Parameters, <Option<WatchdogAction> as Arbitrary>::Parameters)
type Parameters = (<Option<RebootAction> as Arbitrary>::Parameters, <Option<ShutdownAction> as Arbitrary>::Parameters, <Option<PanicAction> as Arbitrary>::Parameters, <Option<WatchdogAction> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<Option<RebootAction> as Arbitrary>::Strategy, <Option<ShutdownAction> as Arbitrary>::Strategy, <Option<PanicAction> as Arbitrary>::Strategy, <Option<WatchdogAction> as Arbitrary>::Strategy), fn((Option<RebootAction>, Option<ShutdownAction>, Option<PanicAction>, Option<WatchdogAction>)) -> Action>
type Strategy = Map<(<Option<RebootAction> as Arbitrary>::Strategy, <Option<ShutdownAction> as Arbitrary>::Strategy, <Option<PanicAction> as Arbitrary>::Strategy, <Option<WatchdogAction> as Arbitrary>::Strategy), fn((Option<RebootAction>, Option<ShutdownAction>, Option<PanicAction>, Option<WatchdogAction>)) -> Action>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for Action
impl Ord for Action
Source§impl PartialOrd for Action
impl PartialOrd for Action
Source§impl ToCommand for Action
impl ToCommand for Action
fn has_args(&self) -> bool
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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