pub struct JobStatus {Show 22 fields
pub name: String,
pub job_id: u64,
pub state: String,
pub desired_state: String,
pub generation: u64,
pub starts_total: u64,
pub restarts_total: u64,
pub last_start_at_ms: Option<u64>,
pub last_exit_at_ms: Option<u64>,
pub last_exit_reason: String,
pub backoff_remaining_ms: Option<u64>,
pub drain_remaining_ms: Option<u64>,
pub drain_supported: bool,
pub active_streams: Option<u64>,
pub cluster_job: bool,
pub factory_name: String,
pub placement: Option<PlacementSpec>,
pub coordinator_node_id: String,
pub placement_node_id: String,
pub placement_generation: u64,
pub placement_history: Vec<ClusterPlacementHistory>,
pub params: HashMap<String, String>,
}Fields§
§name: String§job_id: u64§state: String§desired_state: String§generation: u64§starts_total: u64§restarts_total: u64§last_start_at_ms: Option<u64>§last_exit_at_ms: Option<u64>§last_exit_reason: String§backoff_remaining_ms: Option<u64>§drain_remaining_ms: Option<u64>§drain_supported: bool§active_streams: Option<u64>§cluster_job: bool§factory_name: String§placement: Option<PlacementSpec>§coordinator_node_id: String§placement_node_id: String§placement_generation: u64§placement_history: Vec<ClusterPlacementHistory>§params: HashMap<String, String>Implementations§
Source§impl JobStatus
impl JobStatus
Sourcepub fn last_start_at_ms(&self) -> u64
pub fn last_start_at_ms(&self) -> u64
Returns the value of last_start_at_ms, or the default value if last_start_at_ms is unset.
Sourcepub fn last_exit_at_ms(&self) -> u64
pub fn last_exit_at_ms(&self) -> u64
Returns the value of last_exit_at_ms, or the default value if last_exit_at_ms is unset.
Sourcepub fn backoff_remaining_ms(&self) -> u64
pub fn backoff_remaining_ms(&self) -> u64
Returns the value of backoff_remaining_ms, or the default value if backoff_remaining_ms is unset.
Sourcepub fn drain_remaining_ms(&self) -> u64
pub fn drain_remaining_ms(&self) -> u64
Returns the value of drain_remaining_ms, or the default value if drain_remaining_ms is unset.
Sourcepub fn active_streams(&self) -> u64
pub fn active_streams(&self) -> u64
Returns the value of active_streams, or the default value if active_streams is unset.
Trait Implementations§
Source§impl Message for JobStatus
impl Message for JobStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for JobStatus
Auto Trait Implementations§
impl Freeze for JobStatus
impl RefUnwindSafe for JobStatus
impl Send for JobStatus
impl Sync for JobStatus
impl Unpin for JobStatus
impl UnsafeUnpin for JobStatus
impl UnwindSafe for JobStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage