Enum exec::Error [] [src]

#[must_use]
pub enum Error { 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

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

An error was returned by the system.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<NulError> for Error
[src]

[src]

Convert a NulError into an ExecError.