Struct rsfs::mem::unix::Permissions
[−]
[src]
pub struct Permissions(_);
Representation of the various permissions on a file.
This struct implements rsfs::Permissions
and has unix extensions.
Examples
use rsfs::unix_ext::*; use rsfs::mem::Permissions; fs.set_permissions("foo.txt", Permissions::from_mode(0o400))?;
Trait Implementations
impl Copy for Permissions
[src]
impl Clone for Permissions
[src]
fn clone(&self) -> Permissions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Permissions
[src]
impl PartialEq for Permissions
[src]
fn eq(&self, __arg_0: &Permissions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Permissions) -> bool
This method tests for !=
.
impl Eq for Permissions
[src]
impl Permissions for Permissions
[src]
fn readonly(&self) -> bool
Returns whether these permissions have readonly set. Read more
fn set_readonly(&mut self, readonly: bool)
Modifies the readonly fly for these permissions. Read more