wasmtime_wasi::bindings::sockets::network

Trait HostNetwork

Source
pub trait HostNetwork: Sized + Send {
    // Required method
    fn drop(&mut self, rep: Resource<Network>) -> Result<()>;
}

Required Methods§

Source

fn drop(&mut self, rep: Resource<Network>) -> 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: HostNetwork + ?Sized + Send> HostNetwork for &mut _T

Source§

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

Implementors§

Source§

impl<T> HostNetwork for WasiImpl<T>
where T: WasiView,