Struct stemflow::FileAccess [] [src]

pub struct FileAccess {
    pub path: Arc<PathBuf>,
    pub action: Action,
}

Greedy access control

Remove sub-restrictions:

/foo(rw) + /foo/bar(ro) => /foo(rw)

Fields

path
action

Methods

impl FileAccess

fn new_ro(path: PathBuf) -> Result<Vec<FileAccess>, ()>

fn new_rw(path: PathBuf) -> Result<Vec<FileAccess>, ()>

fn new_wo(path: PathBuf) -> Result<Vec<FileAccess>, ()>

fn new(path: Arc<PathBuf>, action: Action) -> Result<Self, ()>

fn contains(&self, other: &Self) -> bool

Trait Implementations

impl AsRef<Path> for FileAccess

fn as_ref(&self) -> &Path

impl PartialOrd for FileAccess

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl Ord for FileAccess

Ordering to set the more accurate (path) access right first

fn cmp(&self, other: &Self) -> Ordering

Derived Implementations

impl Eq for FileAccess

impl PartialEq for FileAccess

fn eq(&self, __arg_0: &FileAccess) -> bool

fn ne(&self, __arg_0: &FileAccess) -> bool

impl Hash for FileAccess

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for FileAccess

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for FileAccess

fn clone(&self) -> FileAccess

fn clone_from(&mut self, source: &Self)