pub struct InspectContainerState {Show 23 fields
pub cgroup_path: Option<String>,
pub checkpoint_log: Option<String>,
pub checkpoint_path: Option<String>,
pub checkpointed: Option<bool>,
pub checkpointed_at: Option<String>,
pub conmon_pid: Option<i64>,
pub dead: Option<bool>,
pub error: Option<String>,
pub exit_code: Option<i32>,
pub finished_at: Option<String>,
pub health: Option<Box<HealthCheckResults>>,
pub oom_killed: Option<bool>,
pub oci_version: Option<String>,
pub paused: Option<bool>,
pub pid: Option<i64>,
pub restarting: Option<bool>,
pub restore_log: Option<String>,
pub restored: Option<bool>,
pub restored_at: Option<String>,
pub running: Option<bool>,
pub started_at: Option<String>,
pub status: Option<String>,
pub stopped_by_user: Option<bool>,
}
Expand description
InspectContainerState : InspectContainerState provides a detailed record of a container’s current state. It is returned as part of InspectContainerData. As with InspectContainerData, many portions of this struct are matched to Docker, but here we see more fields that are unused (nonsensical in the context of Libpod).
Fields§
§cgroup_path: Option<String>
§checkpoint_log: Option<String>
§checkpoint_path: Option<String>
§checkpointed: Option<bool>
§checkpointed_at: Option<String>
§conmon_pid: Option<i64>
§dead: Option<bool>
§error: Option<String>
§exit_code: Option<i32>
§finished_at: Option<String>
§health: Option<Box<HealthCheckResults>>
§oom_killed: Option<bool>
§oci_version: Option<String>
§paused: Option<bool>
§pid: Option<i64>
§restarting: Option<bool>
§restore_log: Option<String>
§restored: Option<bool>
§restored_at: Option<String>
§running: Option<bool>
§started_at: Option<String>
§status: Option<String>
§stopped_by_user: Option<bool>
Implementations§
Source§impl InspectContainerState
impl InspectContainerState
Sourcepub fn new() -> InspectContainerState
pub fn new() -> InspectContainerState
InspectContainerState provides a detailed record of a container’s current state. It is returned as part of InspectContainerData. As with InspectContainerData, many portions of this struct are matched to Docker, but here we see more fields that are unused (nonsensical in the context of Libpod).
Trait Implementations§
Source§impl Clone for InspectContainerState
impl Clone for InspectContainerState
Source§fn clone(&self) -> InspectContainerState
fn clone(&self) -> InspectContainerState
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 InspectContainerState
impl Debug for InspectContainerState
Source§impl Default for InspectContainerState
impl Default for InspectContainerState
Source§fn default() -> InspectContainerState
fn default() -> InspectContainerState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InspectContainerState
impl<'de> Deserialize<'de> for InspectContainerState
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 InspectContainerState
impl PartialEq for InspectContainerState
Source§impl Serialize for InspectContainerState
impl Serialize for InspectContainerState
impl StructuralPartialEq for InspectContainerState
Auto Trait Implementations§
impl Freeze for InspectContainerState
impl RefUnwindSafe for InspectContainerState
impl Send for InspectContainerState
impl Sync for InspectContainerState
impl Unpin for InspectContainerState
impl UnwindSafe for InspectContainerState
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