Method lrs::file::File::invalid

Creates a file on which every operation fails.

Syntax

impl File {
    fn invalid() -> File
}

Return value

Returns an invalid file.

Remarks

This is equivalent to calling File::from_borrowed(-1). This can be useful when a function which always returns a File or an object containing a File has to signal an error condition.