HasRootPermissions

Trait HasRootPermissions 

Source
pub trait HasRootPermissions {
    // Provided methods
    fn can_read(&self, _path: &str) -> bool { ... }
    fn can_write(&self, _path: &str) -> bool { ... }
    fn max_depth(&self) -> Option<usize> { ... }
}
Expand description

Trait for root permissions and security

Provided Methods§

Source

fn can_read(&self, _path: &str) -> bool

Check if read access is allowed for this path

Source

fn can_write(&self, _path: &str) -> bool

Check if write access is allowed for this path

Source

fn max_depth(&self) -> Option<usize>

Get maximum depth for directory traversal

Implementors§