pub struct Access { /* private fields */ }Implementations§
Source§impl Access
impl Access
pub fn new(scope: ScopeStore) -> Self
pub fn scope(&self) -> &ScopeStore
pub fn scope_mut(&mut self) -> &mut ScopeStore
Sourcepub fn allow_dropped(&mut self, path: &Path) -> Option<PathBuf>
pub fn allow_dropped(&mut self, path: &Path) -> Option<PathBuf>
Remembers a file the OS says was dropped (a folder, a missing path or a link out of nowhere is ignored).
Sourcepub fn resolve(&self, path: &Path) -> Result<ScopedPath, ScopeError>
pub fn resolve(&self, path: &Path) -> Result<ScopedPath, ScopeError>
The one gate: a granted folder’s file, or a file dropped this session. Anything else is refused.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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