pub enum OpenType {
    OpenAndCreate,
    ReadWrite,
    Open,
}
Expand description

Indicates how the file stream should open the underlying file.

Variants

OpenAndCreate

Open and create the file if it does not exist.

This will truncate the file if it already exists.

ReadWrite

Open the file for reading and writing.

Open

Open the file for reading.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.