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

Object Safety§

This trait is not object safe.

Implementors§