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
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