Skip to main content

DirectoryHandle

Trait DirectoryHandle 

Source
pub trait DirectoryHandle:
    Debug
    + Sized
    + Sealed {
    type Error: Debug;
    type FileHandleT: FileHandle<Error = Self::Error>;

    // Required methods
    fn get_file_handle_with_options(
        &self,
        name: &str,
        options: &GetFileHandleOptions,
    ) -> impl Future<Output = Result<Self::FileHandleT, Self::Error>>;
    fn get_directory_handle_with_options(
        &self,
        name: &str,
        options: &GetDirectoryHandleOptions,
    ) -> impl Future<Output = Result<Self, Self::Error>>;
    fn remove_entry(
        &mut self,
        name: &str,
    ) -> impl Future<Output = Result<(), Self::Error>>;
    fn remove_entry_with_options(
        &mut self,
        name: &str,
        options: &FileSystemRemoveOptions,
    ) -> impl Future<Output = Result<(), Self::Error>>;
    fn entries(
        &self,
    ) -> impl Future<Output = Result<impl Stream<Item = Result<(String, DirectoryEntry<Self, Self::FileHandleT>), Self::Error>>, Self::Error>>;
}

Required Associated Types§

Required Methods§

Source

fn get_file_handle_with_options( &self, name: &str, options: &GetFileHandleOptions, ) -> impl Future<Output = Result<Self::FileHandleT, Self::Error>>

Source

fn get_directory_handle_with_options( &self, name: &str, options: &GetDirectoryHandleOptions, ) -> impl Future<Output = Result<Self, Self::Error>>

Source

fn remove_entry( &mut self, name: &str, ) -> impl Future<Output = Result<(), Self::Error>>

Source

fn remove_entry_with_options( &mut self, name: &str, options: &FileSystemRemoveOptions, ) -> impl Future<Output = Result<(), Self::Error>>

Source

fn entries( &self, ) -> impl Future<Output = Result<impl Stream<Item = Result<(String, DirectoryEntry<Self, Self::FileHandleT>), Self::Error>>, Self::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§