Trait libp2p_core::connection::IntoConnectionHandler[][src]

pub trait IntoConnectionHandler<TConnInfo = PeerId> {
    type Handler: ConnectionHandler;
    fn into_handler(self, connected: &Connected<TConnInfo>) -> Self::Handler;
}

Prototype for a ConnectionHandler.

Associated Types

type Handler: ConnectionHandler[src]

The node handler.

Loading content...

Required methods

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.

Loading content...

Implementors

impl<T, TConnInfo> IntoConnectionHandler<TConnInfo> for T where
    T: ConnectionHandler
[src]

type Handler = Self

Loading content...