Trait hrpc_build::Method[][src]

pub trait Method {
    type Comment: AsRef<str>;
    fn name(&self) -> &str;
fn identifier(&self) -> &str;
fn client_streaming(&self) -> bool;
fn server_streaming(&self) -> bool;
fn comment(&self) -> &[Self::Comment];
fn options(&self) -> Vec<(String, String)>;
fn request_response_name(
        &self,
        proto_path: &str
    ) -> (TokenStream, TokenStream); }
Expand description

Method generation trait.

Each service contains a set of generic Methods’s that will be used by codegen to generate abstraction implementations for the provided methods.

Associated Types

Comment type.

Required methods

Name of method.

Identifier used to generate type name.

Method is streamed by client.

Method is streamed by server.

Get comments about this item.

Get options of this item.

Type name of request and response.

Implementations on Foreign Types

Implementors