Module panic

Source
Expand description

Catch panics of underlying handlers and turn them into error responses.

Applies to both Language Servers and Language Clients.

Structs§

CatchUnwind
The middleware catching panics of underlying handlers and turn them into error responses.
CatchUnwindBuilder
The builder of CatchUnwind middleware.
ResponseFuture
The Future type used by the CatchUnwind middleware.

Type Aliases§

CatchUnwindLayer
A type alias of CatchUnwindBuilder conforming to the naming convention of tower_layer.