[][src]Trait libp2p_core::nodes::handled_node_tasks::IntoNodeHandler

pub trait IntoNodeHandler {
    type Handler: NodeHandler;
    fn into_handler(self, remote_peer_id: &PeerId) -> Self::Handler;
}

Prototype for a NodeHandler.

Associated Types

type Handler: NodeHandler

The node handler.

Loading content...

Required methods

fn into_handler(self, remote_peer_id: &PeerId) -> Self::Handler

Builds the node handler.

The PeerId is the id of the node the handler is going to handle.

Loading content...

Implementors

impl<T> IntoNodeHandler for T where
    T: NodeHandler
[src]

type Handler = Self

impl<TIntoProtoHandler, TProtoHandler> IntoNodeHandler for NodeHandlerWrapperBuilder<TIntoProtoHandler> where
    TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>,
    TProtoHandler: ProtocolsHandler,
    <TProtoHandler::OutboundProtocol as OutboundUpgrade<<TProtoHandler as ProtocolsHandler>::Substream>>::Error: Debug
[src]

type Handler = NodeHandlerWrapper<TIntoProtoHandler::Handler>

Loading content...