pub enum OpenError {
Io(Error),
ExitStatus {
cmd: &'static str,
status: ExitStatus,
stderr: String,
},
}
Expand description
An error type representing the failure to open a path. Possibly returned by the open
function.
The ExitStatus
variant will never be returned on Windows.
Variants§
Io(Error)
An IO error occurred.
ExitStatus
Fields
§
status: ExitStatus
The failed process’s exit status.
The command exited with a non-zero exit status.
Trait Implementations§
source§impl Fail for OpenError
impl Fail for OpenError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more