Trait libp2p::core::connection::IntoConnectionHandler [−][src]
pub trait IntoConnectionHandler {
type Handler: ConnectionHandler;
pub fn into_handler(self, connected: &Connected) -> Self::Handler;
}Prototype for a ConnectionHandler.
Associated Types
type Handler: ConnectionHandler[src]
The node handler.
Required methods
pub fn into_handler(self, connected: &Connected) -> 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> IntoConnectionHandler for T where
T: ConnectionHandler, [src]
impl<T> IntoConnectionHandler for T where
T: ConnectionHandler, [src]type Handler = T
pub fn into_handler(self, &Connected) -> T[src]
impl<TIntoProtoHandler, TProtoHandler> IntoConnectionHandler for NodeHandlerWrapperBuilder<TIntoProtoHandler> where
TProtoHandler: ProtocolsHandler,
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>, [src]
impl<TIntoProtoHandler, TProtoHandler> IntoConnectionHandler for NodeHandlerWrapperBuilder<TIntoProtoHandler> where
TProtoHandler: ProtocolsHandler,
TIntoProtoHandler: IntoProtocolsHandler<Handler = TProtoHandler>, [src]type Handler = NodeHandlerWrapper<<TIntoProtoHandler as IntoProtocolsHandler>::Handler>
pub fn into_handler(
self,
connected: &Connected
) -> <NodeHandlerWrapperBuilder<TIntoProtoHandler> as IntoConnectionHandler>::Handler[src]
self,
connected: &Connected
) -> <NodeHandlerWrapperBuilder<TIntoProtoHandler> as IntoConnectionHandler>::Handler