Protocol

Trait Protocol 

Source
pub trait Protocol {
    type Invoker;
    type Exporter;

    // Required methods
    fn destroy(&self);
    fn export<'async_trait>(
        self,
        url: Url,
    ) -> Pin<Box<dyn Future<Output = Self::Exporter> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn refer<'async_trait>(
        self,
        url: Url,
    ) -> Pin<Box<dyn Future<Output = Self::Invoker> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn destroy(&self)

Source

fn export<'async_trait>( self, url: Url, ) -> Pin<Box<dyn Future<Output = Self::Exporter> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn refer<'async_trait>( self, url: Url, ) -> Pin<Box<dyn Future<Output = Self::Invoker> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§