wasmtime_wasi::bindings::io::error

Trait GetHost

pub trait GetHost<T, D>:
    Fn(T) -> Self::Host
    + Send
    + Sync
    + Copy
    + 'static {
    type Host: Host + Send;
}

Required Associated Types§

type Host: Host + Send

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.

Implementors§

§

impl<F, T, D, O> GetHost<T, D> for F
where F: Fn(T) -> O + Send + Sync + Copy + 'static, O: Host + Send,

§

type Host = O