Struct openat_ct::DirFlags[][src]

pub struct DirFlags { /* fields omitted */ }
Expand description

‘Dir::new()’ creates a new DirFlags object with default (O_CLOEXEC) flags. One can then freely add/remove flags to the set. The final open calls will add O_DIRECTORY and O_PATH as applicable/supported but not verify or remove any defined flags. This allows passing flags the ‘openat’ implementation is not even aware about. Thus the open call may fail with some error when one constructed an invalid flag set.

Implementations

Sets the given flags

Clears the given flags

Queries current flags

Open a directory descriptor at specified path

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.