Expand description
Handler traits and registration types.
Structs§
- Registered
Rune - A registered rune with its config and handler.
Enums§
- Handler
Kind - An erased handler, either unary or stream, with or without files.
Type Aliases§
- BoxFuture
- Boxed future returned by handlers.
- Rune
Handler Fn - A unary handler function:
(ctx, input) -> Result<Bytes>. - Rune
Handler With Files Fn - A unary handler that also accepts files:
(ctx, input, files) -> Result<Bytes>. - Stream
Rune Handler Fn - A stream handler function:
(ctx, input, stream) -> Result<()>. - Stream
Rune Handler With Files Fn - A stream handler that also accepts files:
(ctx, input, files, stream) -> Result<()>.