pub trait IntoReactor<T, S = ()> {
type Reactor: Reactor<T, S>;
// Required method
fn into_reactor(self) -> Self::Reactor;
}
Expand description
A type that can be converted into a Reactor
.
This trait is notably implemented for collection types of Reactor
s for chaining. For
example, IntoReactor
is implemented for tuples of Reactor
types in ThenChain
and so
such tuples can be used in functions like then
to ergonomically sequence a chain of
Reactor
s.