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 Freeze for NetworkFsDir
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<'a, P>(
&'a self,
path: &'a P,
permissions: Permissions,
) -> Self::OpFuture<'a>
fn set_permissions<'a, P>( &'a self, path: &'a P, permissions: Permissions, ) -> Self::OpFuture<'a>
Examples Read more