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
You could define your own interaction patterns such as OneWay.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.