#[non_exhaustive]
pub enum OpenError {
Io(Error),
Spawn {
cmds: String,
source: 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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
An IO error occurred.
Spawn
There was an error spawning command(s).
ExitStatus
Fields
§
status: ExitStatusThe 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()