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§
- OnStream
Begin Handler AsService - A wrapper around a handler to implement a service.
- OnStream
EndHandler AsService - A wrapper around a handler to implement a service.
Traits§
- OnRequest
Stream Begin Handler clients - 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.
- OnRequest
Stream EndHandler clients - A stream ending/(on disconnect) handler, attempts to be an incredibly thin layer between a function, and the actual ending handler.
- OnResponse
Stream Begin Handler servers - 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.
- OnResponse
Stream EndHandler servers - A stream ending/(on disconnect) handler, attempts to be an incredibly thin layer between a function, and the actual ending handler.