Trait dubbo::protocol::Invoker

source ·
pub trait Invoker<ReqBody>: Debug {
    type Response;
    type Error;
    type Future: Future<Output = Result<Self::Response, Self::Error>>;

    // Required methods
    fn get_url(&self) -> Url;
    fn poll_ready(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Result<(), Self::Error>>;
    fn call(&mut self, req: ReqBody) -> Self::Future;
}

Required Associated Types§

source

type Response

source

type Error

source

type Future: Future<Output = Result<Self::Response, Self::Error>>

Required Methods§

source

fn get_url(&self) -> Url

source

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

source

fn call(&mut self, req: ReqBody) -> Self::Future

Implementors§