pub enum HealthcheckCommand {
None,
Shell(String),
Exec(Vec<String>),
}Expand description
A Docker healthcheck command.
Variants§
None
Disable healthchecks.
Shell(String)
Shell-form command rendered with CMD-SHELL.
Exec(Vec<String>)
Exec-form command rendered with CMD.
Implementations§
Source§impl HealthcheckCommand
impl HealthcheckCommand
Sourcepub fn shell(command: impl Into<String>) -> HealthcheckCommand
pub fn shell(command: impl Into<String>) -> HealthcheckCommand
Creates a shell-form command.
Sourcepub fn exec<I, S>(command: I) -> Result<HealthcheckCommand, HealthcheckError>
pub fn exec<I, S>(command: I) -> Result<HealthcheckCommand, HealthcheckError>
Creates an exec-form command.
Trait Implementations§
Source§impl Clone for HealthcheckCommand
impl Clone for HealthcheckCommand
Source§fn clone(&self) -> HealthcheckCommand
fn clone(&self) -> HealthcheckCommand
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 HealthcheckCommand
impl Debug for HealthcheckCommand
Source§impl Display for HealthcheckCommand
impl Display for HealthcheckCommand
Source§impl PartialEq for HealthcheckCommand
impl PartialEq for HealthcheckCommand
Source§fn eq(&self, other: &HealthcheckCommand) -> bool
fn eq(&self, other: &HealthcheckCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HealthcheckCommand
impl StructuralPartialEq for HealthcheckCommand
Auto Trait Implementations§
impl Freeze for HealthcheckCommand
impl RefUnwindSafe for HealthcheckCommand
impl Send for HealthcheckCommand
impl Sync for HealthcheckCommand
impl Unpin for HealthcheckCommand
impl UnsafeUnpin for HealthcheckCommand
impl UnwindSafe for HealthcheckCommand
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