[−][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_conn_info: &TConnInfo) -> Self::Handler
Builds the node handler.
The TConnInfo is the information about the connection that the handler is going to handle.
This is generated by the Transport and typically implements the ConnectionInfo trait.
Implementors
impl<T, TConnInfo> IntoNodeHandler<TConnInfo> for T where
T: NodeHandler, [src]
T: NodeHandler,
type Handler = Self
fn into_handler(self, _: &TConnInfo) -> Self[src]
impl<TIntoProtoHandler, TProtoHandler> IntoNodeHandler<(PeerId, ConnectedPoint)> for NodeHandlerWrapperBuilder<TIntoProtoHandler> where
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>,
TProtoHandler: ProtocolsHandler, [src]
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>,
TProtoHandler: ProtocolsHandler,