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§
Sourcetype CreateError: Debug + Send + 'static
type CreateError: Debug + Send + 'static
Error when creating the stream
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.