Struct vfs::impls::altroot::AltrootFS [−][src]
Similar to a chroot but done purely by path manipulation
NOTE: This mechanism should only be used for convenience, NOT FOR SECURITY
Symlinks, hardlinks, remounts, side channels and other file system mechanisms can be exploited to circumvent this mechanism
Implementations
impl AltrootFS
[src]
Trait Implementations
impl Clone for AltrootFS
[src]
impl Debug for AltrootFS
[src]
impl FileSystem for AltrootFS
[src]
fn read_dir(&self, path: &str) -> VfsResult<Box<dyn Iterator<Item = String>>>
[src]
fn create_dir(&self, path: &str) -> VfsResult<()>
[src]
fn open_file(&self, path: &str) -> VfsResult<Box<dyn SeekAndRead>>
[src]
fn create_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn append_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn metadata(&self, path: &str) -> VfsResult<VfsMetadata>
[src]
fn exists(&self, path: &str) -> VfsResult<bool>
[src]
fn remove_file(&self, path: &str) -> VfsResult<()>
[src]
fn remove_dir(&self, path: &str) -> VfsResult<()>
[src]
fn copy_file(&self, src: &str, dest: &str) -> VfsResult<()>
[src]
fn move_file(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
fn move_dir(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AltrootFS
impl Send for AltrootFS
impl Sync for AltrootFS
impl Unpin for AltrootFS
impl !UnwindSafe for AltrootFS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,