pub struct VFS;Trait Implementations§
Source§impl VFS for VFS
impl VFS for VFS
Source§type Ctx<'vfs> = PathBuf
type Ctx<'vfs> = PathBuf
Can be thought of as essentially a
PathBuf, but in practice forms a trie.Source§type PathRef<'s> = &'s Path
type PathRef<'s> = &'s Path
Convertible from a null-terminated C string, especially
MeasuredNullTermStr.Source§type OwnedPath = PathBuf
type OwnedPath = PathBuf
Convertible from an owned null-terminated C string, especially
NullTermString.Source§type FileOptions = OpenOptions
type FileOptions = OpenOptions
Typically just
fs::OpenOptions.Source§type Dir<'vfs> = DirectoryStream
type Dir<'vfs> = DirectoryStream
An open directory stream, like the result of
fs::read_dir().fn path_ref<'s>(p: &'s Self::OwnedPath) -> Self::PathRef<'s>
Source§fn initial_context<'vfs>(&'vfs self) -> Result<Self::Ctx<'vfs>, Self::Err>
fn initial_context<'vfs>(&'vfs self) -> Result<Self::Ctx<'vfs>, Self::Err>
This will return a context representing the process’s current working directory.
fn join_context_dir<'vfs>( &'vfs self, ctx: Self::Ctx<'vfs>, rel: Self::PathRef<'_>, ) -> Self::Ctx<'vfs>
fn join_context_link<'vfs>( &'vfs self, ctx: Self::Ctx<'vfs>, _link_rel: Self::PathRef<'_>, target: Self::PathRef<'_>, ) -> Self::Ctx<'vfs>
fn entry_rel<'vfs, 'dir, 's>( name: <<<Self as VFS>::Dir<'vfs> as DirectoryStream>::DirEntry<'dir> as DirectoryEntry>::PathRef<'s>, ) -> Self::PathRef<'s>
fn entry_owned_rel<'vfs, 'dir>( name: <<<Self as VFS>::Dir<'vfs> as DirectoryStream>::DirEntry<'dir> as DirectoryEntry>::OwnedPath, ) -> Self::OwnedPath
Source§fn stat<'vfs>(
&'vfs self,
ctx: Self::Ctx<'vfs>,
rel: Self::PathRef<'_>,
) -> Result<Self::Stat, Self::Err>
fn stat<'vfs>( &'vfs self, ctx: Self::Ctx<'vfs>, rel: Self::PathRef<'_>, ) -> Result<Self::Stat, Self::Err>
Read metadata from a file path and/or directory entry.
Source§fn read_link<'vfs>(
&'vfs self,
ctx: Self::Ctx<'vfs>,
rel: Self::PathRef<'_>,
) -> Result<Self::OwnedPath, Self::Err>
fn read_link<'vfs>( &'vfs self, ctx: Self::Ctx<'vfs>, rel: Self::PathRef<'_>, ) -> Result<Self::OwnedPath, Self::Err>
Read the contents of a symbolic link.
Auto Trait Implementations§
impl Freeze for VFS
impl RefUnwindSafe for VFS
impl Send for VFS
impl Sync for VFS
impl Unpin for VFS
impl UnwindSafe for VFS
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