pub trait StreamTypes: ConnectionErrors {
type In: RpcMessage;
type Out: RpcMessage;
type RecvStream: Stream<Item = Result<Self::In, Self::RecvError>> + Send + Sync + Unpin + 'static;
type SendSink: Sink<Self::Out, Error = Self::SendError> + Send + Sync + Unpin + 'static;
}
Expand description
Required Associated Types§
Sourcetype In: RpcMessage
type In: RpcMessage
The type of messages that can be received on the channel
Sourcetype Out: RpcMessage
type Out: RpcMessage
The type of messages that can be sent on the channel
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.