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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Permissions
[src]

Formats the value using the given formatter.

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 Permissions for Permissions
[src]

Returns whether these permissions have readonly set. Read more

Modifies the readonly fly for these permissions. Read more

impl PermissionsExt for Permissions
[src]

Returns the underlying Unix mode of these permissions. Read more

Sets the underlying Unix mode for these permissions. Read more

Creates a new Permissions from the given Unix mode. Read more