ProtocolRouter

Trait ProtocolRouter 

Source
pub trait ProtocolRouter: Service<InEvent = ProtocolRouterInEvent, OutEvent = ProtocolRouterOutEvent> { }
Expand description

The protocol message router service trait.

This trait is used by the [Behaviour] to route received (and published) messages to the appropriate peers.

It handles the ProtocolRouterInEvent and generates ProtocolRouterOutEvent events.

Implementors§

Source§

impl<_INNER> ProtocolRouter for _INNER
where _INNER: Service<InEvent = ProtocolRouterInEvent, OutEvent = ProtocolRouterOutEvent>,