Trait libp2p::core::connection::IntoConnectionHandler [−][src]
Prototype for a ConnectionHandler.
Associated Types
type Handler: ConnectionHandler[src]
The node handler.
Required methods
pub fn into_handler(self, connected: &Connected<TConnInfo>) -> Self::Handler[src]
Builds the node handler.
The implementation is given a Connected value that holds information about
the newly established connection for which a handler should be created.
Implementors
impl<T, TConnInfo> IntoConnectionHandler<TConnInfo> for T where
T: ConnectionHandler, [src]
T: ConnectionHandler,
type Handler = T
pub fn into_handler(self, &Connected<TConnInfo>) -> T[src]
impl<TIntoProtoHandler, TProtoHandler, TConnInfo> IntoConnectionHandler<TConnInfo> for NodeHandlerWrapperBuilder<TIntoProtoHandler> where
TConnInfo: ConnectionInfo<PeerId = PeerId>,
TProtoHandler: ProtocolsHandler,
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>, [src]
TConnInfo: ConnectionInfo<PeerId = PeerId>,
TProtoHandler: ProtocolsHandler,
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>,
type Handler = NodeHandlerWrapper<<TIntoProtoHandler as IntoProtocolsHandler>::Handler>
pub fn into_handler(
self,
connected: &Connected<TConnInfo>
) -> <NodeHandlerWrapperBuilder<TIntoProtoHandler> as IntoConnectionHandler<TConnInfo>>::Handler[src]
self,
connected: &Connected<TConnInfo>
) -> <NodeHandlerWrapperBuilder<TIntoProtoHandler> as IntoConnectionHandler<TConnInfo>>::Handler