Trait Host

Source
pub trait Host: Send + Send {
    // Required method
    fn get_directories(
        &mut self,
    ) -> impl Future<Output = Result<Vec<(Resource<Descriptor>, String)>>> + Send;
}

Required Methods§

Source

fn get_directories( &mut self, ) -> impl Future<Output = Result<Vec<(Resource<Descriptor>, String)>>> + Send

Return the set of preopened directories, and their path.

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: Host + ?Sized + Send> Host for &mut _T

Source§

async fn get_directories( &mut self, ) -> Result<Vec<(Resource<Descriptor>, String)>>

Return the set of preopened directories, and their path.

Implementors§