pub struct ExecutionContext {
pub path: CString,
pub wrapper: Vec<CString>,
pub argv: Vec<CString>,
pub env: Vec<CString>,
pub started: Instant,
}Expand description
The set of facts about a service that get used for determining when to restart a process.
Fields§
§path: CStringThe path to the executable.
wrapper: Vec<CString>The wrapper to execute with.
argv: Vec<CString>The args to provide to the command.
env: Vec<CString>The environment to set.
started: InstantThe instant that it started (not used for equality or hashing).
Implementations§
Trait Implementations§
Source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
Source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutionContext
impl Debug for ExecutionContext
Source§impl From<&ExecutionContext> for Value
impl From<&ExecutionContext> for Value
Source§fn from(exec: &ExecutionContext) -> Self
fn from(exec: &ExecutionContext) -> Self
Converts to this type from the input type.
Source§impl Hash for ExecutionContext
impl Hash for ExecutionContext
Source§impl PartialEq for ExecutionContext
impl PartialEq for ExecutionContext
impl Eq for ExecutionContext
Auto Trait Implementations§
impl Freeze for ExecutionContext
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnwindSafe for ExecutionContext
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