pub struct ProcessInfo {Show 14 fields
pub key: Option<ProcessKey>,
pub exe_path: String,
pub app_class: String,
pub app_name: String,
pub app_version: String,
pub instance_name: String,
pub runtime: i32,
pub supported_ops: Vec<i32>,
pub registered_unix_ms: u64,
pub env: HashMap<String, String>,
pub name: String,
pub cwd: String,
pub registered: bool,
pub env_names: Vec<String>,
}Fields§
§key: Option<ProcessKey>§exe_path: String§app_class: String§app_name: String§app_version: String§instance_name: String§runtime: i32§supported_ops: Vec<i32>§registered_unix_ms: u64§env: HashMap<String, String>Only variables the target allowlisted. Never the full environment.
name: String§cwd: String§registered: bool§env_names: Vec<String>Implementations§
Source§impl ProcessInfo
impl ProcessInfo
Sourcepub fn runtime(&self) -> Runtime
pub fn runtime(&self) -> Runtime
Returns the enum value of runtime, or the default if the field is set to an invalid enum value.
Sourcepub fn set_runtime(&mut self, value: Runtime)
pub fn set_runtime(&mut self, value: Runtime)
Sets runtime to the provided enum value.
Sourcepub fn supported_ops(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SupportedOp>> ⓘ
pub fn supported_ops( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SupportedOp>> ⓘ
Returns an iterator which yields the valid enum values contained in supported_ops.
Sourcepub fn push_supported_ops(&mut self, value: SupportedOp)
pub fn push_supported_ops(&mut self, value: SupportedOp)
Appends the provided enum value to supported_ops.
Trait Implementations§
Source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
Source§fn clone(&self) -> ProcessInfo
fn clone(&self) -> ProcessInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessInfo
impl Debug for ProcessInfo
Source§impl Default for ProcessInfo
impl Default for ProcessInfo
Source§impl Message for ProcessInfo
impl Message for ProcessInfo
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.Source§impl PartialEq for ProcessInfo
impl PartialEq for ProcessInfo
impl StructuralPartialEq for ProcessInfo
Auto Trait Implementations§
impl Freeze for ProcessInfo
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnsafeUnpin for ProcessInfo
impl UnwindSafe for ProcessInfo
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