Trait gloo_worker::reactor::ReactorScoped
source · pub trait ReactorScoped: Stream + FusedStream {
type Input;
type Output;
// Required method
fn new<IS, OS>(input_stream: IS, output_sink: OS) -> Self
where IS: Stream<Item = Self::Input> + FusedStream + 'static,
OS: Sink<Self::Output, Error = Infallible> + 'static;
}
Expand description
A helper trait to extract the input and output type from a [ReactorStream].
Required Associated Types§
Required Methods§
sourcefn new<IS, OS>(input_stream: IS, output_sink: OS) -> Selfwhere
IS: Stream<Item = Self::Input> + FusedStream + 'static,
OS: Sink<Self::Output, Error = Infallible> + 'static,
fn new<IS, OS>(input_stream: IS, output_sink: OS) -> Selfwhere
IS: Stream<Item = Self::Input> + FusedStream + 'static,
OS: Sink<Self::Output, Error = Infallible> + 'static,
Creates a ReactorReceiver.
Object Safety§
This trait is not object safe.