wasmtime_wasi::bindings::filesystem::types

Trait HostDirectoryEntryStream

Source
pub trait HostDirectoryEntryStream: Send {
    // Required methods
    fn read_directory_entry(
        &mut self,
        self_: Resource<DirectoryEntryStream>,
    ) -> impl Future<Output = Result<Option<DirectoryEntry>, FsError>> + Send;
    fn drop(&mut self, rep: Resource<DirectoryEntryStream>) -> Result<()>;
}

Required Methods§

Source

fn read_directory_entry( &mut self, self_: Resource<DirectoryEntryStream>, ) -> impl Future<Output = Result<Option<DirectoryEntry>, FsError>> + Send

Read a single directory entry from a directory-entry-stream.

Source

fn drop(&mut self, rep: Resource<DirectoryEntryStream>) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<_T: HostDirectoryEntryStream + ?Sized + Send> HostDirectoryEntryStream for &mut _T

Source§

async fn read_directory_entry( &mut self, self_: Resource<DirectoryEntryStream>, ) -> Result<Option<DirectoryEntry>, FsError>

Read a single directory entry from a directory-entry-stream.

Source§

fn drop(&mut self, rep: Resource<DirectoryEntryStream>) -> Result<()>

Implementors§