pub struct ManagedWorker {Show 15 fields
pub name: String,
pub task_queue: String,
pub desired: String,
pub state: String,
pub pid: Option<u32>,
pub process_group: Option<i32>,
pub restarts: u32,
pub last_exit_at: Option<String>,
pub last_exit_code: Option<i32>,
pub last_exit_signal: Option<i32>,
pub last_exit_requested: bool,
pub last_error: Option<String>,
pub deployed_content_hash: String,
pub spawn_content_hash: Option<String>,
pub spawn_path: Option<String>,
}Expand description
One managed worker: durable intent joined with live supervision state.
Fields§
§name: String§task_queue: String§desired: StringDurable operator intent: “running” or “stopped”.
state: StringLive supervision state: starting, running, backoff, stopped, failed, or uncommissioned.
pid: Option<u32>Present only while a process is running.
process_group: Option<i32>§restarts: u32§last_exit_at: Option<String>RFC 3339 instant of the last observed ending, when there has been one.
last_exit_code: Option<i32>§last_exit_signal: Option<i32>§last_exit_requested: boolWhether the supervisor itself asked for that ending.
last_error: Option<String>§deployed_content_hash: StringContent hash of the binary named at deploy time.
spawn_content_hash: Option<String>Content hash measured at the most recent spawn. Differing from
deployed_content_hash is an upgrade, stated rather than silent.
spawn_path: Option<String>Implementations§
Source§impl ManagedWorker
impl ManagedWorker
Sourcepub fn process_group(&self) -> i32
pub fn process_group(&self) -> i32
Returns the value of process_group, or the default value if process_group is unset.
Sourcepub fn last_exit_at(&self) -> &str
pub fn last_exit_at(&self) -> &str
Returns the value of last_exit_at, or the default value if last_exit_at is unset.
Sourcepub fn last_exit_code(&self) -> i32
pub fn last_exit_code(&self) -> i32
Returns the value of last_exit_code, or the default value if last_exit_code is unset.
Sourcepub fn last_exit_signal(&self) -> i32
pub fn last_exit_signal(&self) -> i32
Returns the value of last_exit_signal, or the default value if last_exit_signal is unset.
Sourcepub fn last_error(&self) -> &str
pub fn last_error(&self) -> &str
Returns the value of last_error, or the default value if last_error is unset.
Sourcepub fn spawn_content_hash(&self) -> &str
pub fn spawn_content_hash(&self) -> &str
Returns the value of spawn_content_hash, or the default value if spawn_content_hash is unset.
Sourcepub fn spawn_path(&self) -> &str
pub fn spawn_path(&self) -> &str
Returns the value of spawn_path, or the default value if spawn_path is unset.
Trait Implementations§
Source§impl Clone for ManagedWorker
impl Clone for ManagedWorker
Source§fn clone(&self) -> ManagedWorker
fn clone(&self) -> ManagedWorker
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManagedWorker
impl Debug for ManagedWorker
Source§impl Default for ManagedWorker
impl Default for ManagedWorker
Source§impl<'de> Deserialize<'de> for ManagedWorker
impl<'de> Deserialize<'de> for ManagedWorker
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>,
impl Eq for ManagedWorker
Source§impl Hash for ManagedWorker
impl Hash for ManagedWorker
Source§impl Message for ManagedWorker
impl Message for ManagedWorker
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.Source§impl PartialEq for ManagedWorker
impl PartialEq for ManagedWorker
Source§impl Serialize for ManagedWorker
impl Serialize for ManagedWorker
impl StructuralPartialEq for ManagedWorker
Auto Trait Implementations§
impl Freeze for ManagedWorker
impl RefUnwindSafe for ManagedWorker
impl Send for ManagedWorker
impl Sync for ManagedWorker
impl Unpin for ManagedWorker
impl UnsafeUnpin for ManagedWorker
impl UnwindSafe for ManagedWorker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request