[][src]Struct sunrise_shell::subcommands::RunArgs

pub struct RunArgs {
    pub stdin: IPipeProxy,
    pub stdout: IPipeProxy,
    pub stderr: IPipeProxy,
    pub args: Vec<String>,
    pub ret: Arc<Once<Result<(), Error>>>,
    pub f: fn(_: IPipeProxy, _: IPipeProxy, _: IPipeProxy, _: Vec<String>) -> Result<(), Error>,
}

The structure sent to the builtin subcommand's trampoline function.

Fields

stdin: IPipeProxy

Stdin pipe to use for this subcommand.

stdout: IPipeProxy

Stdout pipe to use for this subcommand.

stderr: IPipeProxy

Stderr pipe to use for this subcommand.

args: Vec<String>

Args to pass to the subcommand's main.

ret: Arc<Once<Result<(), Error>>>

Return value of this subcommand.

f: fn(_: IPipeProxy, _: IPipeProxy, _: IPipeProxy, _: Vec<String>) -> Result<(), Error>

Subcommand's main function.

Auto Trait Implementations

impl !RefUnwindSafe for RunArgs

impl Send for RunArgs

impl Sync for RunArgs

impl Unpin for RunArgs

impl !UnwindSafe for RunArgs

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> SetParameter for T

impl<T> SizedIPCBuffer 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.