Trait conch_runtime::env::LastStatusEnvironment
[−]
[src]
pub trait LastStatusEnvironment { fn last_status(&self) -> ExitStatus; fn set_last_status(&mut self, status: ExitStatus); }
An interface for setting and getting the exit status of the last command to run.
Required Methods
fn last_status(&self) -> ExitStatus
Get the exit status of the previous command.
fn set_last_status(&mut self, status: ExitStatus)
Set the exit status of the previously run command.
Implementations on Foreign Types
impl<'a, T: ?Sized + LastStatusEnvironment> LastStatusEnvironment for &'a mut T
[src]
fn last_status(&self) -> ExitStatus
[src]
fn set_last_status(&mut self, status: ExitStatus)
[src]
Implementors
impl<A, IO, FD, L, V, EX, WD, N, ERR> LastStatusEnvironment for Env<A, IO, FD, L, V, EX, WD, N, ERR> where
L: LastStatusEnvironment,
N: Hash + Eq,impl<A, IO, FD, L, V, EX, WD, N, ERR> LastStatusEnvironment for AtomicEnv<A, IO, FD, L, V, EX, WD, N, ERR> where
L: LastStatusEnvironment,
N: Hash + Eq,impl LastStatusEnvironment for LastStatusEnv