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

Required Methods§

Source

fn instance_network( &mut self, ) -> impl Future<Output = Result<Resource<Network>>> + Send

Get a handle to the default network.

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 instance_network(&mut self) -> Result<Resource<Network>>

Get a handle to the default network.

Implementors§