pub struct NativeRtDir { /* private fields */ }Available on crate feature
native only.Trait Implementations§
Source§impl Debug for NativeRtDir
impl Debug for NativeRtDir
Source§impl DirHandle for NativeRtDir
impl DirHandle for NativeRtDir
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<NativeFile, u64>
type OpenFileFuture<'a> = OpenFileFuture<'a>
type PathFuture<'a> = Ready<Result<PathBuf, Error>>
type OpenDirFuture<'a> = Ready<Result<NativeRtDir, Error>>
type ReadDir<'a> = ReadDir
type ReadDirFuture<'a> = Ready<Result<ReadDir, Error>>
type MetadataFuture<'a> = MetadataFuture
type OpFuture<'a> = OpFuture
Auto Trait Implementations§
impl Freeze for NativeRtDir
impl !RefUnwindSafe for NativeRtDir
impl Send for NativeRtDir
impl Sync for NativeRtDir
impl Unpin for NativeRtDir
impl !UnwindSafe for NativeRtDir
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: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
permissions: Permissions,
) -> Self::OpFuture<'a>
fn set_permissions<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, permissions: Permissions, ) -> Self::OpFuture<'a>
Examples Read more
Source§fn remove_dir<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
) -> Self::OpFuture<'a>
fn remove_dir<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, ) -> Self::OpFuture<'a>
Examples Read more
Source§fn remove_dir_all<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
) -> Self::OpFuture<'a>
fn remove_dir_all<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, ) -> Self::OpFuture<'a>
Examples Read more
Source§fn create_dir<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
) -> Self::OpFuture<'a>
fn create_dir<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, ) -> Self::OpFuture<'a>
Examples Read more
Source§fn create_dir_all<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
) -> Self::OpFuture<'a>
fn create_dir_all<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, ) -> Self::OpFuture<'a>
Examples Read more
Source§fn remove_file<'a, P: AsRef<Path> + ?Sized>(
&'a self,
path: &'a P,
) -> Self::OpFuture<'a>
fn remove_file<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P, ) -> Self::OpFuture<'a>
Examples Read more
Source§fn rename<'a, P: AsRef<Path> + ?Sized>(
&'a self,
from: &'a P,
to: &'a P,
) -> Self::OpFuture<'a>
fn rename<'a, P: AsRef<Path> + ?Sized>( &'a self, from: &'a P, to: &'a P, ) -> Self::OpFuture<'a>
Examples Read more