wasmcloud_runtime::capability::bus1_0_0::lattice

Trait HostCallTargetInterface

Source
pub trait HostCallTargetInterface {
    // Required methods
    fn new<'life0, 'async_trait>(
        &'life0 mut self,
        namespace: String,
        package: String,
        interface: String,
    ) -> Pin<Box<dyn Future<Output = Result<Resource<CallTargetInterface>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn drop<'life0, 'async_trait>(
        &'life0 mut self,
        rep: Resource<CallTargetInterface>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn new<'life0, 'async_trait>( &'life0 mut self, namespace: String, package: String, interface: String, ) -> Pin<Box<dyn Future<Output = Result<Resource<CallTargetInterface>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn drop<'life0, 'async_trait>( &'life0 mut self, rep: Resource<CallTargetInterface>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

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

Source§

fn new<'life0, 'async_trait>( &'life0 mut self, namespace: String, package: String, interface: String, ) -> Pin<Box<dyn Future<Output = Result<Resource<CallTargetInterface>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn drop<'life0, 'async_trait>( &'life0 mut self, rep: Resource<CallTargetInterface>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§