#[non_exhaustive]pub enum HealthCommand {
Shell(PublicHealthCommand),
Exec(PublicHealthArgumentArray),
SensitiveInlineShell(SensitiveInlineHealthCommand),
SensitiveInlineExec(SensitiveInlineHealthArgumentArray),
ExternalShell(SensitiveInputReference),
ExternalExec(SensitiveInputReference),
}Expand description
One declared health command, preserving shell and exec syntax distinctions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shell(PublicHealthCommand)
A caller-authorized shell command.
Exec(PublicHealthArgumentArray)
A caller-authorized direct executable and argument array.
SensitiveInlineShell(SensitiveInlineHealthCommand)
An inline sensitive shell command, redacted in all debug output.
SensitiveInlineExec(SensitiveInlineHealthArgumentArray)
An inline sensitive direct command, redacted in all debug output.
ExternalShell(SensitiveInputReference)
A caller-owned sensitive shell-command source, redacted in all debug output.
ExternalExec(SensitiveInputReference)
A caller-owned sensitive direct-command source, redacted in all debug output.
Trait Implementations§
Source§impl Clone for HealthCommand
impl Clone for HealthCommand
Source§fn clone(&self) -> HealthCommand
fn clone(&self) -> HealthCommand
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 HealthCommand
impl Debug for HealthCommand
impl Eq for HealthCommand
Source§impl PartialEq for HealthCommand
impl PartialEq for HealthCommand
impl StructuralPartialEq for HealthCommand
Auto Trait Implementations§
impl Freeze for HealthCommand
impl RefUnwindSafe for HealthCommand
impl Send for HealthCommand
impl Sync for HealthCommand
impl Unpin for HealthCommand
impl UnsafeUnpin for HealthCommand
impl UnwindSafe for HealthCommand
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