podman_client/models/podman/containers/
wait.rs

1#[derive(Default)]
2pub struct ContainerWaitOptions<'a> {
3    pub name: &'a str,
4    pub condition: Option<ContainerWaitConditionOptions>,
5    pub interval: Option<&'a str>,
6}
7
8pub enum ContainerWaitConditionOptions {
9    Configured,
10    Created,
11    Exited,
12    Healthy,
13    Initialized,
14    Paused,
15    Removing,
16    Running,
17    Stopped,
18    Stopping,
19    Unhealthy,
20}
21
22impl ContainerWaitConditionOptions {
23    pub fn as_str(&self) -> &'static str {
24        match self {
25            Self::Configured => "configured",
26            Self::Created => "created",
27            Self::Exited => "exited",
28            Self::Healthy => "healthy",
29            Self::Initialized => "initialized",
30            Self::Paused => "paused",
31            Self::Removing => "removing",
32            Self::Running => "running",
33            Self::Stopped => "stopped",
34            Self::Stopping => "stopping",
35            Self::Unhealthy => "unhealthy",
36        }
37    }
38}
39
40pub type ContainerWait = i32;