Trait currant::Command[][src]

pub trait Command where
    Self: Sized
{ fn insert_command(cmd: InnerCommand) -> Self;
fn get_command(&self) -> &InnerCommand;
fn get_command_mut(&mut self) -> &mut InnerCommand; fn from_argv<S, C, ArgType, Cmds>(
        name: S,
        command: C,
        args: Cmds
    ) -> Result<Self, CommandError>
    where
        S: Into<String>,
        C: Into<String>,
        ArgType: Into<String>,
        Cmds: IntoIterator<Item = ArgType>
, { ... }
fn from_string<S, C>(
        name: S,
        command_string: C
    ) -> Result<Self, CommandError>
    where
        S: Into<String>,
        C: Into<String>
, { ... }
fn cur_dir<D>(self, dir: D) -> Self
    where
        D: Into<PathBuf>
, { ... }
fn env<K, V>(self, key: K, val: V) -> Self
    where
        K: Into<String>,
        V: Into<String>
, { ... } }

Required methods

Provided methods

Implementors