Function lrs::dir::iter

Creates an iterator over the entries in a directory.

Syntax

fn iter<S>(path: S, error: Option<&'a mut Result<(), Errno>>) -> Iter<'a>
    where S: ToCString,

Arguments

NameDescription
path

The path of the directory to be inspected.

error

Optional storage space for an error that occurs during the iteation.

Remarks

If the error argument is not None, an error that occurs during the iteration will be stored in its place. After the iteration the error variable should be inspected for an error.