Enum rusty_fork::Error
[−]
pub enum Error { UnknownFlag(String), DisallowedFlag(String, String), SpawnError(Error), }
Enum for errors produced by the rusty-fork crate.
Variants
UnknownFlag(String)
An unknown flag was encountered when examining the current process's argument list.
The string is the flag that was encountered.
DisallowedFlag(String, String)
A flag was encountered when examining the current process's argument list which is known but cannot be handled in any sensible way.
The strings are the flag encountered and a human-readable message about why the flag could not be handled.
SpawnError(Error)
Spawning a subprocess failed.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
impl Error for Error
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