Struct steward::process::Process[][src]

pub struct Process<Loc> {
    pub tag: &'static str,
    pub cmd: Cmd<Loc>,
    pub timeout: Duration,
}

Long running process. Can be constructed via Process::new or convenience process! macro.

Fields

tag: &'static str

Tag used as an identificator in output when process runs as a part of a ProcessPool.

cmd: Cmd<Loc>

Command to run a process.

timeout: Duration

Amount of time to wait before killing hanged process. See also TIMEOUT.

Implementations

impl<Loc> Process<Loc> where
    Loc: Location + Send + Sync
[src]

pub fn new(tag: &'static str, cmd: Cmd<Loc>, timeout: Duration) -> Self[src]

Constructs a new process.

pub fn tag(&self) -> &'static str[src]

Returns a tag of a process.

pub fn cmd(&self) -> &Cmd<Loc>[src]

Returns a command of a process.

pub fn timeout(&self) -> Duration[src]

Returns a timeout of a process.

Auto Trait Implementations

impl<Loc> RefUnwindSafe for Process<Loc> where
    Loc: RefUnwindSafe

impl<Loc> Send for Process<Loc> where
    Loc: Send

impl<Loc> Sync for Process<Loc> where
    Loc: Sync

impl<Loc> Unpin for Process<Loc> where
    Loc: Unpin

impl<Loc> UnwindSafe for Process<Loc> where
    Loc: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,