pub struct PathrsRoot { /* private fields */ }Expand description
Kernel-enforced path containment using pathrs + openat2(RESOLVE_IN_ROOT).
Implementations§
Source§impl PathrsRoot
impl PathrsRoot
Trait Implementations§
Source§impl ContainedFs for PathrsRoot
impl ContainedFs for PathrsRoot
Source§fn walk(&self, path: &str) -> Result<FsHandle, FsError>
fn walk(&self, path: &str) -> Result<FsHandle, FsError>
Resolve a relative path and return an FsHandle for 9P walk state.
Source§fn open(&self, path: &str, mode: OpenMode) -> Result<File, FsError>
fn open(&self, path: &str, mode: OpenMode) -> Result<File, FsError>
Open an existing file relative to the root.
Source§fn create(&self, path: &str, mode: OpenMode) -> Result<File, FsError>
fn create(&self, path: &str, mode: OpenMode) -> Result<File, FsError>
Create a file relative to the root (implies open).
Auto Trait Implementations§
impl Freeze for PathrsRoot
impl RefUnwindSafe for PathrsRoot
impl Send for PathrsRoot
impl Sync for PathrsRoot
impl Unpin for PathrsRoot
impl UnsafeUnpin for PathrsRoot
impl UnwindSafe for PathrsRoot
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more