wasmtime_wasi::bindings::filesystem::types

Trait HostDirectoryEntryStream

source
pub trait HostDirectoryEntryStream {
    // Required methods
    fn read_directory_entry<'life0, 'async_trait>(
        &'life0 mut self,
        self_: Resource<DirectoryEntryStream>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, FsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn drop(&mut self, rep: Resource<DirectoryEntryStream>) -> Result<()>;
}

Required Methods§

source

fn read_directory_entry<'life0, 'async_trait>( &'life0 mut self, self_: Resource<DirectoryEntryStream>, ) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, FsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

source

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

Implementations on Foreign Types§

source§

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

source§

fn read_directory_entry<'life0, 'async_trait>( &'life0 mut self, self_: Resource<DirectoryEntryStream>, ) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, FsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

source§

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

Implementors§