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
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 Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more