quic_rpc::pattern::try_server_streaming

Trait TryServerStreamingMsg

Source
pub trait TryServerStreamingMsg<S: Service>: Msg<S, Pattern = TryServerStreaming>
where Result<Self::Item, Self::ItemError>: Into<S::Res> + TryFrom<S::Res>, Result<StreamCreated, Self::CreateError>: Into<S::Res> + TryFrom<S::Res>,
{ type CreateError: Debug + Send + 'static; type ItemError: Debug + Send + 'static; type Item: Send + 'static; }
Expand description

Same as ServerStreamingMsg, but with lazy stream creation and the error type explicitly defined.

Required Associated Types§

Source

type CreateError: Debug + Send + 'static

Error when creating the stream

Source

type ItemError: Debug + Send + 'static

Error for stream items

Source

type Item: Send + 'static

Successful response item

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.

Implementors§