pub struct ContainerWaitResponse {
pub id: String,
pub exit_code: i32,
pub reason: Option<String>,
pub signal: Option<String>,
pub finished_at: Option<String>,
}Expand description
Wait response with container exit code plus optional classification fields (added in §3.12 of the SDK-fixes spec).
The three optional fields (reason, signal, finished_at) are
additive — clients that only read exit_code keep working unchanged.
Fields§
§id: StringContainer identifier
exit_code: i32Exit code (0 = success). When the container was killed by signal
N, this is typically 128 + N.
reason: Option<String>Classification of the exit. One of "exited", "signal",
"oom_killed", or "runtime_error". Absent when the runtime
didn’t classify the exit.
signal: Option<String>Signal name when reason == "signal", e.g. "SIGKILL". Absent
when the runtime couldn’t determine it (or the exit wasn’t a
signal death).
finished_at: Option<String>RFC3339 timestamp of when the container exited, if reported by the runtime.
Trait Implementations§
Source§impl ComposeSchema for ContainerWaitResponse
impl ComposeSchema for ContainerWaitResponse
Source§impl Debug for ContainerWaitResponse
impl Debug for ContainerWaitResponse
Source§impl<'de> Deserialize<'de> for ContainerWaitResponse
impl<'de> Deserialize<'de> for ContainerWaitResponse
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 Serialize for ContainerWaitResponse
impl Serialize for ContainerWaitResponse
Auto Trait Implementations§
impl Freeze for ContainerWaitResponse
impl RefUnwindSafe for ContainerWaitResponse
impl Send for ContainerWaitResponse
impl Sync for ContainerWaitResponse
impl Unpin for ContainerWaitResponse
impl UnsafeUnpin for ContainerWaitResponse
impl UnwindSafe for ContainerWaitResponse
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