pub struct PathAccessRule { /* private fields */ }Expand description
One platform-neutral path access rule consumed by sandbox backends.
Implementations§
Source§impl PathAccessRule
impl PathAccessRule
Sourcepub fn new(
path: impl Into<PathBuf>,
access: PathAccess,
source: PathAccessRuleSource,
) -> Self
pub fn new( path: impl Into<PathBuf>, access: PathAccess, source: PathAccessRuleSource, ) -> Self
Creates a path access rule.
Sourcepub const fn access(&self) -> PathAccess
pub const fn access(&self) -> PathAccess
Returns the requested access.
Sourcepub const fn source(&self) -> PathAccessRuleSource
pub const fn source(&self) -> PathAccessRuleSource
Returns the trust source for this rule.
Trait Implementations§
Source§impl Clone for PathAccessRule
impl Clone for PathAccessRule
Source§impl Debug for PathAccessRule
impl Debug for PathAccessRule
impl Eq for PathAccessRule
Source§impl PartialEq for PathAccessRule
impl PartialEq for PathAccessRule
impl StructuralPartialEq for PathAccessRule
Auto Trait Implementations§
impl Forget for PathAccessRule
impl Freeze for PathAccessRule
impl Move for PathAccessRule
impl RefUnwindSafe for PathAccessRule
impl Send for PathAccessRulewhere
RawVecInner: Send,
impl Sync for PathAccessRulewhere
RawVecInner: Sync,
impl Unpin for PathAccessRule
impl UnsafeUnpin for PathAccessRule
impl UnwindSafe for PathAccessRulewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.