Type Alias walkdir::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

A result type for walkdir operations.

Note that this result type embeds the error type in this crate. This is only useful if you care about the additional information provided by the error (such as the path associated with the error or whether a loop was dectected). If you want things to Just Work, then you can use io::Result instead since the error type in this package will automatically convert to an io::Result when using the try! macro.

Aliased Type§

enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value