Struct openat_ct::DirMethodFlags[][src]

pub struct DirMethodFlags<'a> { /* fields omitted */ }
Expand description

‘Dir::with(&self)’/‘Dir::with(&self)’ creates a new DirMethodsFlags object with default (O_CLOEXEC|O_NOFOLLOW) flags. One can then freely add/remove flags to the set. Implements proxies for the Dir:: methods that open contained objects.

Implementations

Sets the given flags

Clears the given flags

Open subdirectory

Open file for reading in this directory

Open file for writing, create if necessary, truncate on open

Open file for append, create if necessary

👎 Deprecated since 0.1.7:

please use write_file instead

Create file for writing (and truncate) in this directory

Create a tmpfile in this directory which isn’t linked to any filename

Create file if not exists, fail if exists

Creates a new ‘Normal’ independently owned handle to the underlying directory.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.