Trait webwire::service::consumer::Consumer[][src]

pub trait Consumer: Sync + Send {
    fn request(&self, service: &str, method: &str, data: Bytes) -> Response
Notable traits for Response
impl Future for Response type Output = Result<Bytes, ConsumerError>;
;
fn notify(&self, service: &str, method: &str, data: Bytes); }
Expand description

This trait is implemented by all generic consumers and used by the generated service code.

Required methods

Call service method

Notify service method

Implementors