UNIXPermissionsExt

Trait UNIXPermissionsExt 

Source
pub trait UNIXPermissionsExt {
Show 13 methods // Required methods fn set_uid(&self) -> bool; fn set_gid(&self) -> bool; fn sticky_bit(&self) -> bool; fn readable_by_owner(&self) -> bool; fn writable_by_owner(&self) -> bool; fn executable_by_owner(&self) -> bool; fn readable_by_group(&self) -> bool; fn writable_by_group(&self) -> bool; fn executable_by_group(&self) -> bool; fn readable_by_other(&self) -> bool; fn writable_by_other(&self) -> bool; fn executable_by_other(&self) -> bool; fn stringify(&self) -> String;
}
Expand description

Missing functions that are not exposed by std::os::unix::fs::PermisionsExt.

Required Methods§

Source

fn set_uid(&self) -> bool

Is set-UID bit set?

Source

fn set_gid(&self) -> bool

Is set-GID bit set?

Source

fn sticky_bit(&self) -> bool

Is sticky bit set?

Source

fn readable_by_owner(&self) -> bool

Is this file readable by owner?

Source

fn writable_by_owner(&self) -> bool

Is this file writable by owner?

Source

fn executable_by_owner(&self) -> bool

Is this file executable by owner?

Source

fn readable_by_group(&self) -> bool

Is this file readable by group?

Source

fn writable_by_group(&self) -> bool

Is this file writable by group?

Source

fn executable_by_group(&self) -> bool

Is this file executable by group?

Source

fn readable_by_other(&self) -> bool

Is this file readable by others?

Source

fn writable_by_other(&self) -> bool

Is this file writable by others?

Source

fn executable_by_other(&self) -> bool

Is this file executable by others?

Source

fn stringify(&self) -> String

Convert Permissions into a String, just like the one printed by ls(1).

Implementations on Foreign Types§

Source§

impl UNIXPermissionsExt for Permissions

Implementors§