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