Enum common_failures::io::Target [] [src]

pub enum Target {
    Directory(PathBuf),
    File(PathBuf),
    Stdin,
    Stdout,
    Stderr,
    Other(String),
}

The target of an I/O operation that failed.

Variants

The directory at the specified path.

The file at the specified path.

Standard input.

Standard output.

Standard error.

Another target.

Trait Implementations

impl Clone for Target
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Target
[src]

[src]

Formats the value using the given formatter.

impl Eq for Target
[src]

impl PartialEq for Target
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Display for Target
[src]

[src]

Formats the value using the given formatter. Read more

impl From<PathBuf> for Target
[src]

[src]

Convert a path to a Target::File.

impl<'a> From<&'a PathBuf> for Target
[src]

[src]

Convert a path to a Target::File.

impl<'a> From<&'a Path> for Target
[src]

[src]

Convert a path to a Target::File.