HostCallTargetInterface

Trait HostCallTargetInterface 

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

Required Methods§

Source

fn new( &mut self, namespace: String, package: String, interface: String, ) -> impl Future<Output = Result<Resource<CallTargetInterface>>> + Send

Source

fn drop( &mut self, rep: Resource<CallTargetInterface>, ) -> impl Future<Output = Result<()>> + 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.

Implementations on Foreign Types§

Source§

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

Source§

fn new( &mut self, namespace: String, package: String, interface: String, ) -> impl Future<Output = Result<Resource<CallTargetInterface>>> + Send

Source§

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

Implementors§