pub struct Exec {
pub binary_path: String,
pub arguments: Vec<String>,
pub is_failure: bool,
pub last_start_realtime_us: u64,
pub last_start_monotonic_us: u64,
pub last_exit_realtime_us: u64,
pub last_exit_monotonic_us: u64,
pub pid: u32,
pub last_exit_code: i32,
pub last_status: i32,
}
Expand description
An exec command, augmented with runtime data.
Fields§
§binary_path: String
The binary to run.
arguments: Vec<String>
The arguments to the binary, including argv[0]
.
is_failure: bool
If true, it is considered a failure if the process exits uncleanly.
last_start_realtime_us: u64
The last start time of the process in microseconds on the realtime clock, or 0 if it was never started yet.
last_start_monotonic_us: u64
The last start time of the process in microseconds on the monotonic clock, or 0 if it was never started yet.
last_exit_realtime_us: u64
The last exit time of the process in microseconds on the realtime clock, or 0 if it never finished yet.
last_exit_monotonic_us: u64
The last exit time of the process in microseconds on the monotonic clock, or 0 if it never finished yet.
pid: u32
The PID of the process, or 0 if it was never started yet.
last_exit_code: i32
The last exit code of the process.
last_status: i32
The last status of the process.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exec
impl<'de> Deserialize<'de> for Exec
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 TryFrom<Exec> for OwnedValue
impl TryFrom<Exec> for OwnedValue
Source§impl TryFrom<OwnedValue> for Exec
impl TryFrom<OwnedValue> for Exec
impl Eq for Exec
impl StructuralPartialEq for Exec
Auto Trait Implementations§
impl Freeze for Exec
impl RefUnwindSafe for Exec
impl Send for Exec
impl Sync for Exec
impl Unpin for Exec
impl UnwindSafe for Exec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.