pub trait InteractionPattern: Debug + Clone + Send + Sync + 'static { }
Expand description

Trait defining interaction pattern.

Currently there are 4 patterns:

  • RPC: 1 request, 1 response
  • ClientStreaming: 1 request, stream of updates, 1 response
  • ServerStreaming: 1 request, stream of responses
  • BidiStreaming: 1 request, stream of updates, stream of responses

Implementors§