pub struct Kit { /* private fields */ }Expand description
The kit’s state in the app. A product’s own command reads it with KitExt::kit.
Implementations§
Source§impl Kit
impl Kit
Sourcepub fn resolve(&self, path: &Path) -> Result<ScopedPath, CommandError>
pub fn resolve(&self, path: &Path) -> Result<ScopedPath, CommandError>
The one gate for a product’s own command: a file of a granted folder, or a file dropped this session. Read it with
ScopedPath::open, which confirms the opened file is still the one resolved.
Auto Trait Implementations§
impl !Freeze for Kit
impl !RefUnwindSafe for Kit
impl !UnwindSafe for Kit
impl Send for Kit
impl Sync for Kit
impl Unpin for Kit
impl UnsafeUnpin for Kit
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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