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
ReadA file was opened for reading only.
WriteA file was opened for writing only.
ReadWriteA file was opened for both reading and writing.
Methods
impl Permissions[src]
fn readable(&self) -> bool[src]
Checks if read permissions are granted.
fn writable(&self) -> bool[src]
Checks if write permissions are granted.
fn open<P: AsRef<Path>>(self, path: P) -> Result<File>[src]
Opens permissions as a file handle.
Trait Implementations
impl Debug for Permissions[src]
impl Copy for Permissions[src]
impl Clone for Permissions[src]
fn clone(&self) -> Permissions[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Permissions[src]
fn eq(&self, __arg_0: &Permissions) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for Permissions[src]
impl Into<OpenOptions> for Permissions[src]
fn into(self) -> OpenOptions[src]
Performs the conversion.