[−][src]Trait libp2p::core::nodes::handled_node_tasks::IntoNodeHandler
Prototype for a NodeHandler
.
Associated Types
type Handler: NodeHandler
The node handler.
Required methods
fn into_handler(self, remote_peer_id: &TPeerId) -> Self::Handler
Builds the node handler.
The TPeerId
is the id of the node the handler is going to handle.
Implementors
impl<T, TPeerId> IntoNodeHandler<TPeerId> for T where
T: NodeHandler,
[src]
T: NodeHandler,
type Handler = T
fn into_handler(self, &TPeerId) -> T
[src]
impl<TIntoProtoHandler, TProtoHandler> IntoNodeHandler<PeerId> for NodeHandlerWrapperBuilder<TIntoProtoHandler> where
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>,
TProtoHandler: ProtocolsHandler,
<<TProtoHandler as ProtocolsHandler>::OutboundProtocol as OutboundUpgrade<<TProtoHandler as ProtocolsHandler>::Substream>>::Error: Debug,
[src]
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>,
TProtoHandler: ProtocolsHandler,
<<TProtoHandler as ProtocolsHandler>::OutboundProtocol as OutboundUpgrade<<TProtoHandler as ProtocolsHandler>::Substream>>::Error: Debug,
type Handler = NodeHandlerWrapper<<TIntoProtoHandler as IntoProtocolsHandler>::Handler>
fn into_handler(
self,
remote_peer_id: &PeerId
) -> <NodeHandlerWrapperBuilder<TIntoProtoHandler> as IntoNodeHandler<PeerId>>::Handler
[src]
self,
remote_peer_id: &PeerId
) -> <NodeHandlerWrapperBuilder<TIntoProtoHandler> as IntoNodeHandler<PeerId>>::Handler