pub struct NodeHandlerWrapper<TProtoHandler> where
    TProtoHandler: ProtocolsHandler
{ /* private fields */ }
Expand description

Wraps around an implementation of ProtocolsHandler, and implements NodeHandler.

Trait Implementations

The inbound type of events used to notify the handler through the Network. Read more

The outbound type of events that the handler emits to the Network through ConnectionHandler::poll. Read more

The type of errors that the handler can produce when polled by the Network.

The type of the substream containing the data.

Information about a substream. Can be sent to the handler through a SubstreamEndpoint, and will be passed back in inject_substream or inject_outbound_closed. Read more

Sends a new substream to the handler. Read more

Notifies the handler of an event.

Notifies the handler of a change in the address of the remote.

Polls the handler for events. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The node handler.

Builds the node handler. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.