#[non_exhaustive]pub struct ContainerInfo {
pub container_id: String,
pub status: ContainerStatus,
pub policy: SandboxPolicy,
pub created_at: DateTime<Utc>,
pub task_summary: String,
pub proxy_socket: String,
pub resource_usage: Option<ResourceUsage>,
}Expand description
Runtime information about an active or recently-active container.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.container_id: StringUnique container identifier.
status: ContainerStatusCurrent lifecycle status.
policy: SandboxPolicySandbox policy in effect.
created_at: DateTime<Utc>When this container was created.
task_summary: StringBrief description of the container’s task.
proxy_socket: StringUnix socket path for the container proxy (in-container path).
resource_usage: Option<ResourceUsage>Current resource usage snapshot. None if not yet available.
Implementations§
Source§impl ContainerInfo
impl ContainerInfo
Sourcepub fn new(
container_id: impl Into<String>,
status: ContainerStatus,
policy: SandboxPolicy,
task_summary: impl Into<String>,
proxy_socket: impl Into<String>,
) -> Self
pub fn new( container_id: impl Into<String>, status: ContainerStatus, policy: SandboxPolicy, task_summary: impl Into<String>, proxy_socket: impl Into<String>, ) -> Self
Create container info with the minimum required fields.
Trait Implementations§
Source§impl Clone for ContainerInfo
impl Clone for ContainerInfo
Source§fn clone(&self) -> ContainerInfo
fn clone(&self) -> ContainerInfo
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 ContainerInfo
impl Debug for ContainerInfo
Source§impl<'de> Deserialize<'de> for ContainerInfo
impl<'de> Deserialize<'de> for ContainerInfo
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
Auto Trait Implementations§
impl Freeze for ContainerInfo
impl RefUnwindSafe for ContainerInfo
impl Send for ContainerInfo
impl Sync for ContainerInfo
impl Unpin for ContainerInfo
impl UnsafeUnpin for ContainerInfo
impl UnwindSafe for ContainerInfo
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