Struct conch_runtime::env::LastStatusEnv
[−]
[src]
pub struct LastStatusEnv { /* fields omitted */ }An environment module for setting and getting the exit status of the last command to run.
Methods
impl LastStatusEnv[src]
fn new() -> Self[src]
Initializes a new LastStatusEnv with a successful last status.
fn with_status(status: ExitStatus) -> Self[src]
Creates a new LastStatusEnv with a provided last status.
Trait Implementations
impl Debug for LastStatusEnv[src]
impl PartialEq for LastStatusEnv[src]
fn eq(&self, __arg_0: &LastStatusEnv) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LastStatusEnv) -> bool[src]
This method tests for !=.
impl Eq for LastStatusEnv[src]
impl Clone for LastStatusEnv[src]
fn clone(&self) -> LastStatusEnv[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for LastStatusEnv[src]
impl LastStatusEnvironment for LastStatusEnv[src]
fn last_status(&self) -> ExitStatus[src]
Get the exit status of the previous command.
fn set_last_status(&mut self, status: ExitStatus)[src]
Set the exit status of the previously run command.