[][src]Struct pwfr::core::ebuild::executor::Executor

pub struct Executor {
    pub errexit: bool,
    pub nounset: bool,
    pub noexec: bool,
    // some fields omitted
}

Fields

errexit: boolnounset: boolnoexec: bool

Methods

impl Executor[src]

pub fn new(script_name: &str) -> Self[src]

pub fn enable_tcsetpgrp(&mut self)[src]

pub fn disable_tcsetpgrp(&mut self)[src]

pub fn ifs(&self) -> String[src]

pub fn enter_frame(&mut self)[src]

pub fn leave_frame(&mut self)[src]

pub fn in_global_frame(&self) -> bool[src]

pub fn current_frame(&self) -> &Frame[src]

pub fn current_frame_mut(&mut self) -> &mut Frame[src]

pub fn assign(&mut self, key: &str, value: Value)[src]

pub fn define(&mut self, key: &str, is_local: bool)[src]

pub fn set(&mut self, key: &str, value: Value, is_local: bool)[src]

pub fn remove(&mut self, key: &str) -> Option<Arc<Variable>>[src]

pub fn get(&self, key: &str) -> Option<Arc<Variable>>[src]

pub fn get_str(&self, key: &str) -> Option<String>[src]

pub fn set_and_export(&mut self, name: &str, value: Value)[src]

pub fn export(&mut self, name: &str)[src]

pub fn exported_names(&self) -> Iter<String>[src]

pub fn add_alias(&mut self, name: &str, body: String)[src]

pub fn lookup_alias(&self, alias: &str) -> Option<String>[src]

pub fn pushd(&mut self, path: String)[src]

pub fn popd(&mut self) -> Option<String>[src]

pub fn create_job(
    &mut self,
    name: String,
    pgid: Pid,
    childs: Vec<Pid>
) -> Arc<Job>
[src]

pub fn jobs(&self) -> Vec<Arc<Job>>[src]

pub fn alloc_job_id(&mut self) -> JobId[src]

pub fn last_fore_job(&self) -> Option<Arc<Job>>[src]

pub fn find_job_by_id(&self, id: JobId) -> Option<Arc<Job>>[src]

pub fn continue_job(&mut self, job: &Arc<Job>, background: bool)[src]

pub fn set_terminal_process_group(&self, pgid: Pid)[src]

pub fn restore_terminal_attrs(&self, termios: &Termios)[src]

pub fn run_in_foreground(
    &mut self,
    job: &Arc<Job>,
    sigcont: bool
) -> ProcessState
[src]

pub fn run_in_background(&mut self, job: &Arc<Job>, sigcont: bool)[src]

pub fn destroy_job(&mut self, job: &Arc<Job>)[src]

pub fn check_background_jobs(&mut self)[src]

Checks if background jobs have been terminated and notify the user that some jobs have been finished.

pub fn wait_for_job(&mut self, job: &Arc<Job>) -> ProcessState[src]

Waits for all processes in the job to exit. Note that the job will be deleted from Isolate if the process has exited.

pub fn wait_for_any_process(&mut self, no_block: bool) -> Option<Pid>[src]

Waits for an any process, i.e. waitpid(-1), and then updates the process state recorded in the Isolate. Returns None it would block.

pub fn run_internal_command(
    &mut self,
    argv: &[String],
    stdin: RawFd,
    stdout: RawFd,
    stderr: RawFd,
    redirects: &[Redirection]
) -> Result<ExitStatus, Error>
[src]

Runs an internal (builtin) command.

pub fn eval_in_subshell(&mut self, terms: &[Term]) -> Result<(i32, i32), Error>[src]

Runs commands in a subshell ($() or <()).

pub fn run_terms(
    &mut self,
    terms: &[Term],
    stdin: RawFd,
    stdout: RawFd,
    stderr: RawFd
) -> ExitStatus
[src]

Runs pipelines.

pub fn evaluate_cond_primary(
    &mut self,
    cond: &CondExpr
) -> Result<String, Error>
[src]

Run CondEx command ([[ ... ]]).

pub fn evaluate_cond(&mut self, cond: &CondExpr) -> Result<bool, Error>[src]

Run CondEx command ([[ ... ]]).

pub fn eval(
    &mut self,
    ast: &Ast,
    stdin: RawFd,
    stdout: RawFd,
    stderr: RawFd
) -> ExitStatus
[src]

Runs commands.

pub fn run_file(&mut self, script_file: PathBuf) -> ExitStatus[src]

Parses and runs a shell script file.

pub fn run_str(&mut self, script: &str) -> ExitStatus[src]

Parses and runs a script. Stdin/stdout/stderr are 0, 1, 2, respectively.

pub fn run_str_with_stdio(
    &mut self,
    script: &str,
    stdin: RawFd,
    stdout: RawFd,
    stderr: RawFd
) -> ExitStatus
[src]

Parses and runs a script in the given context.

Trait Implementations

Auto Trait Implementations

impl !Sync for Executor

impl Unpin for Executor

impl !UnwindSafe for Executor

impl !RefUnwindSafe for Executor

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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