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]
impl LastStatusEnvpub fn new() -> Self[src]
pub fn new() -> SelfInitializes a new LastStatusEnv with a successful last status.
pub fn with_status(status: ExitStatus) -> Self[src]
pub fn with_status(status: ExitStatus) -> SelfCreates a new LastStatusEnv with a provided last status.
Trait Implementations
impl Debug for LastStatusEnv[src]
impl Debug for LastStatusEnvfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for LastStatusEnv[src]
impl PartialEq for LastStatusEnvfn eq(&self, other: &LastStatusEnv) -> bool[src]
fn eq(&self, other: &LastStatusEnv) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LastStatusEnv) -> bool[src]
fn ne(&self, other: &LastStatusEnv) -> boolThis method tests for !=.
impl Eq for LastStatusEnv[src]
impl Eq for LastStatusEnvimpl Clone for LastStatusEnv[src]
impl Clone for LastStatusEnvfn clone(&self) -> LastStatusEnv[src]
fn clone(&self) -> LastStatusEnvReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for LastStatusEnv[src]
impl Copy for LastStatusEnvimpl LastStatusEnvironment for LastStatusEnv[src]
impl LastStatusEnvironment for LastStatusEnvfn last_status(&self) -> ExitStatus[src]
fn last_status(&self) -> ExitStatusGet the exit status of the previous command.
fn set_last_status(&mut self, status: ExitStatus)[src]
fn set_last_status(&mut self, status: ExitStatus)Set the exit status of the previously run command.
impl Default for LastStatusEnv[src]
impl Default for LastStatusEnvimpl SubEnvironment for LastStatusEnv[src]
impl SubEnvironment for LastStatusEnvAuto Trait Implementations
impl Send for LastStatusEnv
impl Send for LastStatusEnvimpl Sync for LastStatusEnv
impl Sync for LastStatusEnv