Enum conch_runtime::io::Permissions[][src]

pub enum Permissions {
    Read,
    Write,
    ReadWrite,
}

An indicator of the read/write permissions of an OS file primitive.

Variants

A file was opened for reading only.

A file was opened for writing only.

A file was opened for both reading and writing.

Methods

impl Permissions
[src]

Checks if read permissions are granted.

Checks if write permissions are granted.

Opens permissions as a file handle.

Trait Implementations

impl Debug for Permissions
[src]

Formats the value using the given formatter. Read more

impl Copy for Permissions
[src]

impl Clone for Permissions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Permissions
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Permissions
[src]

impl Into<OpenOptions> for Permissions
[src]

Performs the conversion.

impl Display for Permissions
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Permissions

impl Sync for Permissions