starpc 0.49.7

Streaming protobuf RPC framework
Documentation
1
2
3
4
5
6
7
8
9
//! Message trait for protobuf messages.

use prost::Message as ProstMessage;

/// Trait for protobuf messages that can be sent over starpc.
pub trait Message: ProstMessage + Default + Send + Sync + 'static {}

// Blanket implementation for all prost messages.
impl<T: ProstMessage + Default + Send + Sync + 'static> Message for T {}