Trait dubbo::protocol::Protocol

source ·
pub trait Protocol {
    type Invoker;

    // Required methods
    fn destroy(&self);
    fn export<'async_trait>(
        self,
        url: Url
    ) -> Pin<Box<dyn Future<Output = BoxExporter> + 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 = BoxExporter> + 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§

source§

impl Protocol for RegistryProtocol

§

type Invoker = Box<dyn Invoker<Request<SdkBody>, Response = Response<UnsyncBoxBody<Bytes, Status>>, Error = Box<dyn Error + Send + Sync + 'static, Global>, Future = Pin<Box<dyn Future<Output = Result<Response<UnsyncBoxBody<Bytes, Status>>, Box<dyn Error + Send + Sync + 'static, Global>>> + Send + 'static, Global>>> + Send + Sync + 'static, Global>

source§

impl Protocol for TripleProtocol