macro_rules! declare_bidi_streaming {
($service:ident, $m_input:ident, $m_update:ident, $m_output:ident) => { ... };
}
Expand description
Declare a message to be a server streaming message for a service.
Example:
ⓘ
declare_bidi_streaming!(TestService, TestRequest, TestUpdate, TestResponse);
This is equivalent to:
ⓘ
impl Msg<TestService> for TestRequest {
type Pattern = BidiStreamingPattern;
}
impl BidiStreamingMsg<TestService> for TestRequest {
type Update = TestUpdate;
type Response = TestResponse;
}