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.
A command exited with a non-zero exit status.
Trait Implementations§
source§impl Error for OpenError
impl Error for OpenError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()