Enum opener::OpenError [−][src]
pub enum OpenError { Io(Error), ExitStatus { cmd: &'static str, status: ExitStatus, stderr: String, }, }
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
The command exited with a non-zero exit status.
Fields of ExitStatus
cmd: &'static str | A string that identifies the command. |
status: ExitStatus | The failed process's exit status. |
stderr: String | Anything the process wrote to stderr. |
Trait Implementations
impl Debug for OpenError
[src]
impl Debug for OpenError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for OpenError
[src]
impl Display for OpenError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for OpenError
[src]
impl From<Error> for OpenError