pub trait Service<In> {
type Out;
// Required method
fn handle(
self,
input: impl Stream<Item = In> + Send,
) -> impl Stream<Item = Self::Out> + Send;
}Required Associated Types§
Required Methods§
fn handle( self, input: impl Stream<Item = In> + Send, ) -> impl Stream<Item = Self::Out> + Send
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.