Module handlers

Module handlers 

Source
Available on crate features clients or servers only.
Expand description

These “handler” types, are a way of turning raw rust functions into a tower::Service.

This way they can be plugged into TCP servers to handle packets without requiring the function to be decorated.

Structs§

OnStreamBeginHandlerAsService
A wrapper around a handler to implement a service.
OnStreamEndHandlerAsService
A wrapper around a handler to implement a service.

Traits§

OnRequestStreamBeginHandlerclients
A handler for when a stream begins (an “on connection” event), attempts to be an incredibly thin layer between a function, and the actual ending handler.
OnRequestStreamEndHandlerclients
A stream ending/(on disconnect) handler, attempts to be an incredibly thin layer between a function, and the actual ending handler.
OnResponseStreamBeginHandlerservers
A handler for when a stream begins (an “on connection” event), attempts to be an incredibly thin layer between a function, and the actual ending handler.
OnResponseStreamEndHandlerservers
A stream ending/(on disconnect) handler, attempts to be an incredibly thin layer between a function, and the actual ending handler.