Struct mfio_netfs::NetworkFsDir
source · pub struct NetworkFsDir { /* private fields */ }
Trait Implementations§
source§impl DirHandle for NetworkFsDir
impl DirHandle for NetworkFsDir
source§fn path(&self) -> Self::PathFuture<'_>
fn path(&self) -> Self::PathFuture<'_>
Gets the absolute path to this DirHandle
.
source§fn read_dir(&self) -> Self::ReadDirFuture<'_>
fn read_dir(&self) -> Self::ReadDirFuture<'_>
Reads the directory contents.
This function, upon success, returns a stream that can be used to list files and subdirectories within this dir.
Note that on various platforms this may behave differently. For instance, Unix platforms support holding
source§fn open_file<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
options: OpenOptions
) -> Self::OpenFileFuture<'a>
fn open_file<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, options: OpenOptions ) -> Self::OpenFileFuture<'a>
Opens a file.
This function accepts an absolute or relative path to a file for reading. If the path is
relative, it is opened relative to this DirHandle
.
source§fn open_dir<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P
) -> Self::OpenDirFuture<'a>
fn open_dir<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P ) -> Self::OpenDirFuture<'a>
Opens a directory.
This function accepts an absolute or relative path to a directory for reading. If the path
is relative, it is opened relative to this DirHandle
.
source§fn do_op<'a, P: AsRef<Path> + ?Sized>(
&'a self,
operation: DirOp<&'a P>
) -> Self::OpFuture<'a>
fn do_op<'a, P: AsRef<Path> + ?Sized>( &'a self, operation: DirOp<&'a P> ) -> Self::OpFuture<'a>
Do an operation.
This function performs an operation from the DirOp
enum.
type FileHandle = Seekable<FileWrapper, u64>
type OpenFileFuture<'a> = OpenFileFuture<'a>
type PathFuture<'a> = PathFuture<'a>
type OpenDirFuture<'a> = OpenDirFuture<'a>
type ReadDir<'a> = ReadDir<'a>
type ReadDirFuture<'a> = ReadDirFuture<'a>
type MetadataFuture<'a> = MetadataFuture<'a>
type OpFuture<'a> = OpFuture<'a>
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkFsDir
impl Send for NetworkFsDir
impl Sync for NetworkFsDir
impl Unpin for NetworkFsDir
impl !UnwindSafe for NetworkFsDir
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> DirHandleExt for Twhere
T: DirHandle,
impl<T> DirHandleExt for Twhere
T: DirHandle,
source§fn set_permissions<P, 'a>(
&'a self,
path: &'a P,
permissions: Permissions
) -> Self::OpFuture<'a>
fn set_permissions<P, 'a>( &'a self, path: &'a P, permissions: Permissions ) -> Self::OpFuture<'a>
Examples Read more