Enum exec::ExecError [] [src]

#[must_use]
pub enum ExecError {
    BadArgument(NulError),
    Errno(Errno),
}

Represents an error calling exec.

This is marked #[must_use], which is unusual for error types. Normally, the fact that Result is marked in this fashion is sufficient, but in this case, this error is returned bare from functions that only return a result if they fail.

Variants

BadArgument(NulError)

One of the strings passed to execv contained an internal null byte and can't be passed correctly to C.

Errno(Errno)

An error was returned by the system.

Trait Implementations

impl Debug for ExecError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for ExecError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl Display for ExecError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<NulError> for ExecError
[src]

fn from(err: NulError) -> ExecError

Convert a NulError into an ExecError.