[][src]Trait grpcio_proto::testing::test_grpc::TestService

pub trait TestService {
    pub fn empty_call(
        &mut self,
        ctx: RpcContext<'_>,
        req: Empty,
        sink: UnarySink<Empty>
    );
pub fn unary_call(
        &mut self,
        ctx: RpcContext<'_>,
        req: SimpleRequest,
        sink: UnarySink<SimpleResponse>
    );
pub fn cacheable_unary_call(
        &mut self,
        ctx: RpcContext<'_>,
        req: SimpleRequest,
        sink: UnarySink<SimpleResponse>
    );
pub fn streaming_output_call(
        &mut self,
        ctx: RpcContext<'_>,
        req: StreamingOutputCallRequest,
        sink: ServerStreamingSink<StreamingOutputCallResponse>
    );
pub fn streaming_input_call(
        &mut self,
        ctx: RpcContext<'_>,
        stream: RequestStream<StreamingInputCallRequest>,
        sink: ClientStreamingSink<StreamingInputCallResponse>
    );
pub fn full_duplex_call(
        &mut self,
        ctx: RpcContext<'_>,
        stream: RequestStream<StreamingOutputCallRequest>,
        sink: DuplexSink<StreamingOutputCallResponse>
    );
pub fn half_duplex_call(
        &mut self,
        ctx: RpcContext<'_>,
        stream: RequestStream<StreamingOutputCallRequest>,
        sink: DuplexSink<StreamingOutputCallResponse>
    );
pub fn unimplemented_call(
        &mut self,
        ctx: RpcContext<'_>,
        req: Empty,
        sink: UnarySink<Empty>
    ); }

Required methods

pub fn empty_call(
    &mut self,
    ctx: RpcContext<'_>,
    req: Empty,
    sink: UnarySink<Empty>
)
[src]

pub fn unary_call(
    &mut self,
    ctx: RpcContext<'_>,
    req: SimpleRequest,
    sink: UnarySink<SimpleResponse>
)
[src]

pub fn cacheable_unary_call(
    &mut self,
    ctx: RpcContext<'_>,
    req: SimpleRequest,
    sink: UnarySink<SimpleResponse>
)
[src]

pub fn streaming_output_call(
    &mut self,
    ctx: RpcContext<'_>,
    req: StreamingOutputCallRequest,
    sink: ServerStreamingSink<StreamingOutputCallResponse>
)
[src]

pub fn streaming_input_call(
    &mut self,
    ctx: RpcContext<'_>,
    stream: RequestStream<StreamingInputCallRequest>,
    sink: ClientStreamingSink<StreamingInputCallResponse>
)
[src]

pub fn full_duplex_call(
    &mut self,
    ctx: RpcContext<'_>,
    stream: RequestStream<StreamingOutputCallRequest>,
    sink: DuplexSink<StreamingOutputCallResponse>
)
[src]

pub fn half_duplex_call(
    &mut self,
    ctx: RpcContext<'_>,
    stream: RequestStream<StreamingOutputCallRequest>,
    sink: DuplexSink<StreamingOutputCallResponse>
)
[src]

pub fn unimplemented_call(
    &mut self,
    ctx: RpcContext<'_>,
    req: Empty,
    sink: UnarySink<Empty>
)
[src]

Loading content...

Implementors

Loading content...