Struct mfio_rt::native::NativeRtDir

source ·
pub struct NativeRtDir { /* private fields */ }
Available on crate feature native only.

Trait Implementations§

source§

impl Debug for NativeRtDir

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DirHandle for NativeRtDir

source§

fn path(&self) -> Self::PathFuture<'_>

Gets the absolute path to this DirHandle.

source§

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>

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>

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>

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

source§

fn metadata<'a, P: AsRef<Path> + ?Sized>( &'a self, path: &'a P ) -> Self::MetadataFuture<'a>

Retrieves file metadata. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DirHandleExt for T
where T: DirHandle,

source§

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>

Examples Read more
source§

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>

Examples Read more
source§

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>

Examples Read more
source§

fn rename<'a, P: AsRef<Path> + ?Sized>( &'a self, from: &'a P, to: &'a P ) -> Self::OpFuture<'a>

Examples Read more
source§

fn copy<'a, P: AsRef<Path> + ?Sized>( &'a self, from: &'a P, to: &'a P ) -> Self::OpFuture<'a>

Examples Read more
Examples Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, F> From2<T> for F
where T: Into<F>,

§

fn from2(other: T) -> F

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> GenericTypeBounds for T