pub struct PathPolicy { /* private fields */ }Implementations§
Source§impl PathPolicy
impl PathPolicy
pub fn new() -> Self
pub fn allow_root(self, root: impl Into<PathBuf>) -> Self
pub fn protect_root(self, root: impl Into<PathBuf>) -> Self
pub fn require_approval_outside_allowed(self, value: bool) -> Self
Trait Implementations§
Source§impl Default for PathPolicy
impl Default for PathPolicy
Source§impl PermissionPolicy for PathPolicy
impl PermissionPolicy for PathPolicy
fn evaluate(&self, request: &dyn PermissionRequest) -> PolicyMatch
Auto Trait Implementations§
impl Freeze for PathPolicy
impl RefUnwindSafe for PathPolicy
impl Send for PathPolicy
impl Sync for PathPolicy
impl Unpin for PathPolicy
impl UnsafeUnpin for PathPolicy
impl UnwindSafe for PathPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more