Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime:
    CaughtSignals
    + Clock
    + Close
    + Debug
    + Dup
    + Exec
    + Exit
    + Fcntl
    + Fork
    + Fstat
    + GetPid
    + GetPw
    + IsExecutableFile
    + Isatty
    + Open
    + Pipe
    + Read
    + Seek
    + Select
    + SendSignal
    + SetPgid
    + SetRlimit
    + ShellPath
    + Sigaction
    + Sigmask
    + Signals
    + TcSetPgrp
    + Wait
    + Write { }
Expand description

Runtime environment for executing shell commands

This trait combines various capabilities required for command execution and word expansion into a single trait. Since the implementation of command execution and word expansion is mutually recursive, any trait needed for any part of the implementation is transitively required by most of the implementation. Therefore, this trait serves as a convenient shorthand to express the required capabilities.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S> Runtime for S

Any type automatically implements Runtime if it implements all the supertraits of Runtime.