Enum ubend::Error [−][src]
pub enum Error { OS(c_int), NotEnoughArguments, CannotRedirectStdinTo(Target), NotEnoughPipes, InvalidPipeLinkup, }
Variants
OS(c_int)
A libc function returned an error of specified errno
.
NotEnoughArguments
Any command needs to have at least one "argument" (the command name).
CannotRedirectStdinTo(Target)
stdin cannot be redirected to stderr or stdout, since those are output streams and stdin is an input stream.
NotEnoughPipes
A pipe chain has to have at least one command.
InvalidPipeLinkup
If stdin of a child process is marked as PipeSetup::Pipe
then stdout
of the previous process in the chain has to be PipeSetup::Pipe
or
PipeSetup::Redirect(Target::Stdout)
or stderr of that previous
process has to be PipeSetup::Redirect(Target::Stdout)
.
Trait Implementations
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Debug for Error
[src]
impl Debug for Error