pub enum IntoEitherHandler<L, R> {
Left(L),
Right(R),
}
Variants
Left(L)
Right(R)
Trait Implementations
impl<L, R> IntoProtocolsHandler for IntoEitherHandler<L, R> where
L: IntoProtocolsHandler,
R: IntoProtocolsHandler,
impl<L, R> IntoProtocolsHandler for IntoEitherHandler<L, R> where
L: IntoProtocolsHandler,
R: IntoProtocolsHandler,
Implementation of a IntoProtocolsHandler
that represents either of two IntoProtocolsHandler
implementations.
Builds the protocols handler. Read more
Return the handler’s inbound protocol.
fn select<TProto2>(
self,
other: TProto2
) -> IntoProtocolsHandlerSelect<Self, TProto2> where
Self: Sized,
fn select<TProto2>(
self,
other: TProto2
) -> IntoProtocolsHandlerSelect<Self, TProto2> where
Self: Sized,
Builds an implementation of IntoProtocolsHandler
that handles both this protocol and the
other one together. Read more
Creates a builder that will allow creating a NodeHandler
that handles this protocol
exclusively. Read more