pub enum ContainerLifecycleAction {
Start,
Stop,
Restart,
Pause,
Resume,
}Expand description
Supported reversible container lifecycle mutations.
Variants§
Start
Start a stopped container.
Stop
Stop a running container.
Restart
Restart a container.
Pause
Pause a running container.
Resume
Resume a paused container.
Implementations§
Source§impl ContainerLifecycleAction
impl ContainerLifecycleAction
Sourcepub const fn operation_name(self) -> &'static str
pub const fn operation_name(self) -> &'static str
Returns the canonical operation name.
Sourcepub const fn action_label(self) -> &'static str
pub const fn action_label(self) -> &'static str
Returns a stable backend-neutral action label.
Trait Implementations§
Source§impl Clone for ContainerLifecycleAction
impl Clone for ContainerLifecycleAction
Source§fn clone(&self) -> ContainerLifecycleAction
fn clone(&self) -> ContainerLifecycleAction
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 ContainerLifecycleAction
impl Debug for ContainerLifecycleAction
Source§impl<'de> Deserialize<'de> for ContainerLifecycleAction
impl<'de> Deserialize<'de> for ContainerLifecycleAction
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 ContainerLifecycleAction
impl PartialEq for ContainerLifecycleAction
Source§fn eq(&self, other: &ContainerLifecycleAction) -> bool
fn eq(&self, other: &ContainerLifecycleAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerLifecycleAction
impl Serialize for ContainerLifecycleAction
impl Copy for ContainerLifecycleAction
impl Eq for ContainerLifecycleAction
impl StructuralPartialEq for ContainerLifecycleAction
Auto Trait Implementations§
impl Freeze for ContainerLifecycleAction
impl RefUnwindSafe for ContainerLifecycleAction
impl Send for ContainerLifecycleAction
impl Sync for ContainerLifecycleAction
impl Unpin for ContainerLifecycleAction
impl UnsafeUnpin for ContainerLifecycleAction
impl UnwindSafe for ContainerLifecycleAction
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.