pub struct ContainerStateTerminated {
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub reason: Option<String>,
pub message: Option<String>,
pub started_at: Option<Time>,
pub finished_at: Option<Time>,
pub container_id: Option<String>,
}
Expand description
ContainerStateTerminated is a terminated state of a container.
Fields§
§exit_code: Option<i32>
Exit status from the last termination of the container
signal: Option<i32>
Signal from the last termination of the container +optional
reason: Option<String>
(brief) reason from the last termination of the container +optional
message: Option<String>
Message regarding the last termination of the container +optional
started_at: Option<Time>
Time at which previous execution of the container started +optional
finished_at: Option<Time>
Time at which the container last terminated +optional
container_id: Option<String>
Container’s ID in the format ‘
Implementations§
Source§impl ContainerStateTerminated
impl ContainerStateTerminated
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
Returns the value of exit_code
, or the default value if exit_code
is unset.
Sourcepub fn signal(&self) -> i32
pub fn signal(&self) -> i32
Returns the value of signal
, or the default value if signal
is unset.
Sourcepub fn reason(&self) -> &str
pub fn reason(&self) -> &str
Returns the value of reason
, or the default value if reason
is unset.
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message
, or the default value if message
is unset.
Sourcepub fn container_id(&self) -> &str
pub fn container_id(&self) -> &str
Returns the value of container_id
, or the default value if container_id
is unset.
Trait Implementations§
Source§impl Clone for ContainerStateTerminated
impl Clone for ContainerStateTerminated
Source§fn clone(&self) -> ContainerStateTerminated
fn clone(&self) -> ContainerStateTerminated
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ContainerStateTerminated
impl Debug for ContainerStateTerminated
Source§impl Default for ContainerStateTerminated
impl Default for ContainerStateTerminated
Source§impl Hash for ContainerStateTerminated
impl Hash for ContainerStateTerminated
Source§impl Message for ContainerStateTerminated
impl Message for ContainerStateTerminated
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.