pub enum ContainerStatus {
None,
Starting,
Exited,
Healthy,
Unhealthy,
}Expand description
Health status of a container.
use contain_rs_core::rt::ContainerStatus;
assert_eq!(serde_json::from_str::<ContainerStatus>("\"starting\"").unwrap(), ContainerStatus::Starting);
assert_eq!(serde_json::from_str::<ContainerStatus>("\"\"").unwrap(), ContainerStatus::None);
Variants§
Trait Implementations§
Source§impl Clone for ContainerStatus
impl Clone for ContainerStatus
Source§fn clone(&self) -> ContainerStatus
fn clone(&self) -> ContainerStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 ContainerStatus
impl Debug for ContainerStatus
Source§impl<'de> Deserialize<'de> for ContainerStatus
impl<'de> Deserialize<'de> for ContainerStatus
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 ContainerStatus
impl PartialEq for ContainerStatus
Source§impl Serialize for ContainerStatus
impl Serialize for ContainerStatus
impl Eq for ContainerStatus
impl StructuralPartialEq for ContainerStatus
Auto Trait Implementations§
impl Freeze for ContainerStatus
impl RefUnwindSafe for ContainerStatus
impl Send for ContainerStatus
impl Sync for ContainerStatus
impl Unpin for ContainerStatus
impl UnwindSafe for ContainerStatus
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